190
rated 0 times
[
196]
[
6]
/ answers: 1 / hits: 126480
/ 8 Years ago, wed, march 2, 2016, 12:00:00
I have a date object that I want to
- remove the miliseconds/or set to 0
- remove the seconds/or set to 0
- Convert to ISO string
For example:
var date = new Date();
//Wed Mar 02 2016 16:54:13 GMT-0500 (EST)
var stringDate = moment(date).toISOString();
//2016-03-02T21:54:13.537Z
But what I really want in the end is
stringDate = '2016-03-02T21:54:00.000Z'
More From » date