Skip to content

Instantly share code, notes, and snippets.

@whoisryosuke
Last active March 1, 2021 23:10
Show Gist options
  • Select an option

  • Save whoisryosuke/e9a43c2cb27cf90e0da47cf62c463dfd to your computer and use it in GitHub Desktop.

Select an option

Save whoisryosuke/e9a43c2cb27cf90e0da47cf62c463dfd to your computer and use it in GitHub Desktop.
JS - Get YYYY-MM-DD formatted date -- see: https://stackoverflow.com/a/29774197
const dateString = new Date().toISOString().split('T')[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment