Separate date and time
I have the following line of code and would like to display the time also
but add a text between the date and time:
Code:
'<p class="postedon" >Posted on ' + val.date.substring(0,10)
As seen, i used a substring to only display the date but with the
substring this is what is displayed on my mobile app
2013-09-01 16:20
What I want to achieve is: date + at + time
2013-09-01 at 16:20
No comments:
Post a Comment