Comment Comment by chaitanya 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 parent chaitanya 4 years ago
Here’s what I wrote on this (along with a small library to handle this problem): https://lisper.in/javascript-date