Skip to content

Instantly share code, notes, and snippets.

@pokorson
Created March 2, 2016 10:25
Show Gist options
  • Save pokorson/5882cabbd601c7ee71fb to your computer and use it in GitHub Desktop.
Save pokorson/5882cabbd601c7ee71fb to your computer and use it in GitHub Desktop.
MomentJS local from UTC
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