Skip to content

Instantly share code, notes, and snippets.

@csabagabor
Created September 20, 2018 18:02
Show Gist options
  • Select an option

  • Save csabagabor/0b8b1bd400db1931252d1ef462a08098 to your computer and use it in GitHub Desktop.

Select an option

Save csabagabor/0b8b1bd400db1931252d1ef462a08098 to your computer and use it in GitHub Desktop.
Javascript Date Print Only Date without time(seconds, milliseconds etc. )
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