Published
- 1 min read
get start of day javascript
The solution for this is noted below
get start of day javascript
Solution
var start = new Date()
start.setHours(0, 0, 0, 0)
var end = new Date()
end.setHours(23, 59, 59, 999)
alert(start.toUTCString() + ':' + end.toUTCString())
Try other methods by searching on the site. That is if this doesn’t work