Page 1 of 1

Parsing the _createdAt to output the hhmmss?

Posted: Fri Dec 06, 2013 5:20 pm
by Thai

How who would I Parse the _createdAt to out the hhmmss?

Input is 2013-11-14 23:41:27.030 but I would like the output to be

23:41:27

Not sure how to do this, please help.


Parsing the _createdAt to output the hhmmss?

Posted: Fri Dec 06, 2013 5:31 pm
by maxkatz

You can use basic JavaScript to parse the date or use a library such a Moment.js: http://momentjs.com/