RunKit + npm:

node v6.17.1
endpointsharetweet
//const moment = require('moment'); const moment = require('moment-timezone'); let timestamp = moment(1497678894647); let NYTime = timestamp.tz('America/New_York').format('ddd MMM D Y HH:mm:ss'); console.log(NYTime);
Created from: https://npm.runkit.com/
Loading…

no comments

    sign in to comment