You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find the default timezone relative without milliseconds pretty useless, but don't think I should need to write out the full format every time just to include it. It would be nice to be able to set the default format output:
// set the default
moment.setDefaultFormat('YYYY-MM-DDTHH:mm:ss.SSSZ');
// or
moment.format.setDefault('YYYY-MM-DDTHH:mm:ss.SSSZ');
moment(1469141760123).format(); // '2016-07-21T15:56:00.123-07:00'
The text was updated successfully, but these errors were encountered:
.format()
will output timezone relative WITHOUT milliseconds EG:.toISOString()
will output UTC WITH milliseconds.format('YYYY-MM-DDTHH:mm:ss.SSSZ')
will output timezone relative WITH millisecondsI find the default timezone relative without milliseconds pretty useless, but don't think I should need to write out the full format every time just to include it. It would be nice to be able to set the default format output:
The text was updated successfully, but these errors were encountered: