Using new Date(Date.UTC(year, month, day, hour, minute, second)), you can create a Date object from a specific UTC time.
I tried this code and it returned the correct date (In Indian Locale)
var d=Date.parse("14,Feb,2011");
document.write(new Date(d));
Conclusion:
Mon Feb 14 2011 00:00:00 GMT+0530 (India Standard Time) .
<h / "> Here is an example of conversion between different time zones.
<html>
<body>
<script type="text/javascript">
var offsetIST = 5.5;
var offsetPST = -8;
var d=new Date(Date.parse("14,Feb,2011"));
var utcdate = new Date(d.getTime() + (d.getTimezoneOffset()*60000));
var istdate = new Date(utcdate.getTime() - ((-offsetIST*60)*60000));
var pstdate= new Date(utcdate.getTime() - ((-offsetPST*60)*60000));
document.write(d);
document.write("<br/>");
document.write(utcdate);
document.write("<br/>");
document.write(istdate);
document.write("<br/>");
document.write(pstdate);
</script>
</body>
</html>
Conclusion:
Mon Feb 14 2011 00:00:00 GMT+0530 (India Standard Time)
Sun Feb 13 2011 18:30:00 GMT+0530 (India Standard Time)
Mon Feb 14 2011 00:00:00 GMT+0530 (India Standard Time)
Sun Feb 13 2011 10:30:00 GMT+0530 (India Standard Time)
IST , Date() ( IST ), datetime , UTC, IST, PST .