Suppose a user of your website enters a date range.
2009-1-1 to 2009-1-3
You need to send this date to a server for some processing, but th
This function works beautifully for me.
function ParseDateForSave(dateValue) { // create a new date object var newDate = new Date(parseInt(dateValue.substr(6))); // return the UTC version of the date return newDate.toISOString(); }