Possible Duplicate:
Converting ISO8601-compliant String to java.util.Date
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.
Time sent via json
"topic_lstUpdate" : "2012-09-07 19:39:56.439",
JS script
var topicDate = new Date(args.topic_lstUpdate);
var topicDateISO = topicDate.toISOString();
var topicDateTimeago=jQuery.timeago(topicDate);