Skip to content

Instantly share code, notes, and snippets.

@emafriedrich
Created August 17, 2017 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emafriedrich/e372444375d483e4f1161ba9709e0e8f to your computer and use it in GitHub Desktop.
Save emafriedrich/e372444375d483e4f1161ba9709e0e8f to your computer and use it in GitHub Desktop.
JS Date in dd/mm/yyyy without dependencies and large coding
new Date().toJSON().slice(0,10).split('-').reverse().join('/');
Extract from
https://stackoverflow.com/questions/12409299/how-to-get-current-formatted-date-dd-mm-yyyy-in-javascript-and-append-it-to-an-i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment