Weird formatted date from database datetime
I'm current fetching data from database via ajax with result in json. in
that result there was a datetime value from database with this format,
e.g. 2013-09-06 07:28:52
and when I'm using the momentjs with this code:
var waktu = moment(response.waktu, 'HH mm ss');
the result is:
-62167171952000
whats wrong and how to return it correctly, just for HH:mm:ss ?
thank you.
No comments:
Post a Comment