I'm trying to convert system date to ISO format in below fashion using momentjs
2015-02-17T19:05:00.000Z
I'm however unable to find the parameter that I need to use to get it in the format which I want. I tried below piece of code..
moment().format("YYYY-MM-DD HH:mm Z");
I get output as 2015-02-02 17:24+05:30.
How can I get it as 2015-02-02T17:24:00.000Z
See Question&Answers more detail:os