convert timestamp to ISO860 in java,
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2201925/converting-iso8601-compliant-string-to-java-util-date">Converting ISO8601-compliant String to java.util.Date</a>  </p>
</blockquote>



<p>I have issues when changing the timestamp to ISO 8601 in JS as it errors at 'topicDate' in IE and Firefox, but it works in Chrome. So i want to change the timestamp to ISO 8601 in the server side and send that via json instead. Can anyone help me how to convert the below time stamp to ISO 8601 format in Java using standard classes? Any other suggesting about this approach is also welcomed. </p>

<h2>Time sent via json</h2>

<pre><code> "topic_lstUpdate" : "2012-09-07 19:39:56.439",
</code></pre>

<h2>JS script</h2>

<pre><code>var topicDate = new Date(args.topic_lstUpdate);
            var topicDateISO = topicDate.toISOString();
            var topicDateTimeago=jQuery.timeago(topicDate);
</code></pre>
