Homelab, Linux & ABAP (~˘▾˘)~
 

[JavaScript] Get the Start and End of the Day in format yyyy-MM-ddTHH:mm:ss.SSSZ

const start = new Date()
const end = new Date()
start.setHours(0, 0, 0, 0)
end.setHours(23, 59, 59, 999)

console.log(start.toISOString())
console.log(end.toISOString())

Leave a Reply

Your email address will not be published.