I am using date function in javascript to get the currentDate. as
var currentTime =new Date()
But it is giving me different response in IE and Firefox as
Consider for today's Date
IE - Tue 24 Apr 17:05:22 UTC 0530 2012
Mozilla - Tue 24 Apr 17:05:22 2012 GMT 0530
The Problem is that I Want to convert today's date which is in "String" to "Date" into format - EEE mmm-dd hh:mm:ss IST yyyy
But as i m getting different response in this browser I m not getting how to apply simpleDateformatter to convert current date and time to the suitable format .