Skip to content

Instantly share code, notes, and snippets.

@khalid32
Created November 28, 2017 03:45
Show Gist options
  • Save khalid32/845ace7b1b4654c77bb9075959fe1054 to your computer and use it in GitHub Desktop.
Save khalid32/845ace7b1b4654c77bb9075959fe1054 to your computer and use it in GitHub Desktop.
a demonstration to convert toISOString() to dd-mm-yyyy with JavaScript
new Date().toISOString().replace(/T.*/,'').split('-').reverse().join('-')
@tqtkillbug
Copy link

goof

@Picoquio
Copy link

Thank you very much!

@luisfelipe-dev
Copy link

Thx!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment