moment().format('MMMM Do YYYY, h:mm:ss a') | January 13th 2020, 3:19:07 pm |
moment().add('days', 7).format('MMMM Do YYYY, h:mm:ss a') | January 20th 2020, 3:19:07 pm |
moment().add('days', 7).add('months', 1).format('MMMM Do YYYY, h:mm:ss a') | February 20th 2020, 3:19:07 pm |
moment().add({days:7,months:1}).format('MMMM Do YYYY, h:mm:ss a') | February 20th 2020, 3:19:07 pm |
moment().add('milliseconds', 1000000).format('MMMM Do YYYY, h:mm:ss a') | January 13th 2020, 3:35:47 pm |
moment().add('days', 360).format('MMMM Do YYYY, h:mm:ss a') | January 7th 2021, 3:19:07 pm |
moment(new Date(2012,12,3,6,0,0,0)) - moment(new Date(2012,12,3,5,0,0,0)) | 3600000 |
(new Date(2012,12,3,6,0,0,0)) - (new Date(2012,12,3,5,0,0,0)) | 3600000 |
new Date().getTimezoneOffset() | -360 |
moment(new Date()).zone() | -360 |
(new Date(2013,2,1,14,22,0,0)) - (new Date(2013,1,30,13,22,0,0)) | -82800000 |
moment('5/17/2013 1:45PM', 'DD/MM/YYYY hh:mm:ssa').format('MMMM Do YYYY, h:mm:ss a') | May 5th 2014, 1:45:00 pm |
(moment('2014-02-17T16:30:00')).format('MMMM Do YYYY, h:mm:ss a') | February 17th 2014, 4:30:00 pm |
(moment('2014-02-17T16:30:00z')).format('MMMM Do YYYY, h:mm:ss a') | February 17th 2014, 10:30:00 pm |
new Date('2014-02-17T16:30:00z') | Mon Feb 17 2014 22:30:00 GMT+0600 (Bangladesh Standard Time) |