I am debugging a small application with some functionality that will only work in Chrome. The problem is the datepeck, where you select the date and time, and the datepicker combines it into a datetime string.
In any case, the line looks like this: 2012-10-20 00:00 .
However, the javascript that uses it simply takes a string and initializes the object as follows: new Date('2012-10-20 00:00');
This results in an invalid date in Firefox, IE, and probably all browsers except Chrome. I need to tell how best to convert this datestring to a Date object in javascript. I have jQuery enabled.
Thank you for the wisdom of your sage and the best wisdom.
source share