99
rated 0 times
[
106]
[
7]
/ answers: 1 / hits: 21782
/ 10 Years ago, thu, may 15, 2014, 12:00:00
I'm creating several ISO dates in a Javascript program with the following command:
var isodate = new Date().toISOString()
which returns dates in the format of 2014-05-15T16:55:56.730Z
. I need to subtract 5 hours from each of these dates. The above date would then be formatted as 2014-05-15T11:55:56.730Z
I know this is hacky but would very much appreciate a quick fix.
More From » date