In Javascript (NodeJs),
I receive a local date string (ex: "Wed 15 December") and I need to get the UTC timestamp of the start and end of this local day.
My webserver time is UTC.
For example, if the timezone is UTC+1, passing "Wed 15 December", I should get 1639522800000 timestamp for the day start time, and 1639609199000 for the day end time.
I haven't yet found any way to do this. I see people using momentjs or other libraries but it is not very clear.
I also need to get the start and end UTC timestamps of other moments, such as the start/end of the local month.
Thank you
Juan Pablo Isaza