Converting date and time to iso format in javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2573521/how-do-i-output-an-iso-8601-formatted-string-in-javascript">How do I output an ISO-8601 formatted string in Javascript?</a>  </p>
</blockquote>



<p>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.</p>

<pre><code>var startDate = "10/11/2012";
var startTime = "12:12:00";

var fullDate = startDate + " " + startTime;
var fullDateReal = new Date(fullDate);

var iso = fullDateReal.toISOString();
</code></pre>

<p>Why would .toISOString() show as undefined?</p>

<p>I need to end up with the ISO format ("2012-10-11T12:12") timezone is optional.</p>

<p><strong>Update</strong>
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?</p>
