Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Format a Javascript 'Date'-Object
// Use Moment.js
// see: http://momentjs.com/
moment().format("YYYY-MM-DD_HHmm") // '2016-05-31_1543'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment