Created
September 20, 2018 18:02
-
-
Save csabagabor/0b8b1bd400db1931252d1ef462a08098 to your computer and use it in GitHub Desktop.
Javascript Date Print Only Date without time(seconds, milliseconds etc. )
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
| var date = new Date("2018-08-10T02:00:00Z"); | |
| date.toISOString().substring(0, 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment