Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm:
node v6.17.1
endpoint
share
tweet
//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