Skip to content

Instantly share code, notes, and snippets.

@spac3unit
Forked from zmts/start_end.md
Created October 21, 2021 19:50
Show Gist options
  • Select an option

  • Save spac3unit/0604baf4686d6bc3dbd18136e938e37c to your computer and use it in GitHub Desktop.

Select an option

Save spac3unit/0604baf4686d6bc3dbd18136e938e37c to your computer and use it in GitHub Desktop.
Start/End day. Native JavaScript

Start/End day. Native JavaScript

new Date(new Date().setHours(0,0,0,0)).toISOString()
new Date(new Date().setHours(23,59,59,999)).toISOString()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment