Created
August 17, 2017 19:16
-
-
Save emafriedrich/e372444375d483e4f1161ba9709e0e8f to your computer and use it in GitHub Desktop.
JS Date in dd/mm/yyyy without dependencies and large coding
This file contains hidden or 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
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