Skip to content

Instantly share code, notes, and snippets.

@favio41
Created April 14, 2016 08:43
Show Gist options
  • Save favio41/1860d229cc2d75fbf0e0bc29041aff71 to your computer and use it in GitHub Desktop.
Save favio41/1860d229cc2d75fbf0e0bc29041aff71 to your computer and use it in GitHub Desktop.
console.table({
"01 - moment('2016-04-14T00:00:00+00:00').format()": moment('2016-04-14T00:00:00+00:00').format(),
"02 - moment.utc('2016-04-14T00:00:00+00:00').format()": moment.utc('2016-04-14T00:00:00+00:00').format(),
"03 - moment('2016-04-14T00:00:00+01:00').format()": moment('2016-04-14T00:00:00+01:00').format(),
"05 - new Date('2016-04-14T00:00:00+00:00')": new Date('2016-04-14T00:00:00+00:00'),
"04 - new Date(Date.parse('2016-04-14T00:00:00+00:00'))": new Date(Date.parse('2016-04-14T00:00:00+00:00')),
"09 - moment('2016-04-14T00:00:00+00:00').tz('Europe/London').format()": moment('2016-04-14T00:00:00+00:00').tz('Europe/London').format(),
"10 - moment.utc('2016-04-14T00:00:00+00:00').tz('Europe/London').format()": moment.utc('2016-04-14T00:00:00+00:00').tz('Europe/London').format(),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment