MomentJS, issue with hours and queries -
i issue when try implement moment on nodejs application... the date posted user : 1894-01-01 09:03:00 the date in query : 1894-01-01 08:03:00 when use moment parse date, hour -1 , don't know why... my code : var start = moment(a.startmonth+'-'+a.startday+'-'+a.startyear+' '+a.starthour+':'+a.startminute, "mm-dd-yyyy hh:mm"); try moment.utc(number[]); moment.utc(string); moment.utc(string, string); in utc mode display methods display in utc time instead of local time. moment().format(); // 2013-02-04t10:35:24-08:00 moment.utc().format(); // 2013-02-04t18:35:24+00:00 additionally, while in utc mode, getters , setters internally use date#getutc* , date#setutc* methods instead of date#get* , date#set* methods. read more