Possible Duplicate:
How do I output an ISO-8601 formatted string in Javascript?
I am trying to convert a date and time input to an ISO format but I am getting .toISOString is undefined? I have to be missing something silly.
var startDate = "10/11/2012";
var startTime = "12:12:00";
var fullDate = startDate + " " + startTime;
var fullDateReal = new Date(fullDate);
var iso = fullDateReal.toISOString();
Why would .toISOString() show as undefined?
I need to end up with the ISO format ("2012-10-11T12:12") timezone is optional.
Update It looks like this problem is because IE8 does not support this. So how could I go about converting my inputs to the format listed?