Created
April 27, 2017 02:12
-
-
Save maxterry/8e9ca550aedc6c45ed21273e38a32a41 to your computer and use it in GitHub Desktop.
Moment local datetime to UTC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var d = new Date(); | |
var lastModified = "Last Modified " + moment(d).fromNow() + " (" + moment.utc(d).format('MMMM Do YYYY, h:mm:ss A UTC') + ")"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment