Javascript new Date() Formats and Offsets
Noticing that new Date( 'July 17, 2014' ).getTime()
and new Date( '07/17/2014' ).getTime()
will return two different values. The former will have the GMT offset attached while the later will not.
I need to test if this has anything to do with the values of the first are from a string and the second is from a date input type.
Update
See the Pen sdypG by Dan Cameron (@dancameron) on CodePen.
Leave A Comment