Created
March 2, 2016 10:25
-
-
Save pokorson/5882cabbd601c7ee71fb to your computer and use it in GitHub Desktop.
MomentJS local from 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 localTime = moment.utc(YOUR_DATE).toDate(); | |
localTime = moment(localTime).format('YYYY-MM-DD HH:mm:ss'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment