Quantcast
Channel: User Ben Aston - Stack Overflow
Viewing all articles
Browse latest Browse all 56

Comment by Ben Aston on JavaScript Date - How to better set midnight UTC+0

$
0
0
If you want to treat everything as UTC, and if you can get the raw day, month, year values out of the date picker, the Date constructor assumes UTC when supplied with a string with no time component; or the Date.UTC function treats input values as UTC.

Viewing all articles
Browse latest Browse all 56

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>