I try to get datetime based on user's current datetime. For example, if I want to get the start of the current date in utc,
const start = new Date()
start.setUTCHours(0,0,0,0)
if I want to get the end of the current date in utc,
const end = new Date()
end.setUTCHours(23,59,59,999)
but when I console.log start, it's
Sun Jun 05 2022 17:00:00 GMT-0700 (Pacific Daylight Time)
May I know why there's this "(Pacific Daylight Time)"? )
So what if I want to get 5 days ago of current datetimt? Like if now local datetime is 2:35pm pst, how do I get 5 days ago 2:35 pm but in utc (which should be 7:35pm right?) Thanks!