Created
November 28, 2017 03:45
-
-
Save khalid32/845ace7b1b4654c77bb9075959fe1054 to your computer and use it in GitHub Desktop.
a demonstration to convert toISOString() to dd-mm-yyyy with JavaScript
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().toISOString().replace(/T.*/,'').split('-').reverse().join('-') |
Thank you very much!
Thx!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
goof