3 ms·
You can’t, because JavaScript date objects are just timestamps. Here’s what I wrote on this (along with a small library to handle this problem): https://lisper
by chaitanya 4y ago
You can’t, because JavaScript date objects are just timestamps.
Here’s what I wrote on this (along with a small library to handle this problem): https://lisper.in/javascript-date https://lisper.in/javascript-date
- fareesh 4y agoInteresting, thank you for your work, I might use it in a project. Edit: looks like I need a date object specifically, so I will go with the timezone conversion method and convert back to timestamp