I am converting a string to datetime as below and showing it in textbox with labelFormat "dd/MM/yyyy"
var datetime=new Date("1996-07-04T00:00:00");
But the value of datetime is different in different browser when the time zone is US
In firefox- 4/7/1996 in Chrome- 3/7/1996
So i passed string value with Z as below. Now the values are same but instead of day 4, its showing 3.
var datetime=new Date("1996-07-04T00:00:00Z");
Showing 3/7/1996 instead of 4/7/1996.
Is there anyother options or am i doing anything wrong
Thaanks in advance