xdate: 2013-10-26 =
Fri Oct 25 2013 20:00:00 GMT-0400 (Eastern Daylight Time)
xdate: Oct 26, 2013 =
Sat Oct 26 2013 00:00:00 GMT-0400 (Eastern Daylight Time)
xdate: 10/26/2013 =
Sat Oct 26 2013 00:00:00 GMT-0400 (Eastern Daylight Time)
xdate: Oct. 26, 2013 =
Sat Oct 26 2013 00:00:00 GMT-0400 (Eastern Daylight Time)
When I create a date in javascript using new Date(xdate) with the strings above, they all seem to work fine except for yyyy-mm-dd which comes out to 8PM the night before. Unfortunately that is the format created by the HTML5 type=date. Any way to have that string create a normal date also.
I guess my question is more: WHY does that one format create a date that is 4 hours off. I create a date using 2013-10-26 then do a getDate and get the 25th. that seems wrong!!