I have a JavaScript timestamp that reads
Tue Sep 30 2014 12:02:50 GMT-0400 (EDT)
.
When I use the .getTime() method, I get 1412092970.768
Typically, this timestamp represents a specific time of today. My question is whether it's possible to extract only the day, month, and year while keeping the hour, minute, and second values at 0.
For our current scenario, the desired format would be
Tue Sep 30 2014 00:00:00 GMT-0400 (EDT)
.
I'm unsure about how to go about this conversion process. Converting to Unix timestamp using getTime() doesn't seem to provide clear instructions, and I am unable to set the time directly like in PHP.
Is there a solution to rectify this issue?
Thank you