How to convert date into milliseconds via momentjs code example Example: how to convert millisecond to second to date momentjs var day = moment(1318781876406);