My requirement is , i need to convert the time zone value to offset value for ex.. Asia/Dubai to +4 .. consider am intializing date in js.
var currentDate = new Date();
and it is possible to set the time zone and get the offset..
currentDate.setTimezone("Asia/Dubai");
var offsetValue=currentDate.getTimezoneOffset();
alert('offsetValue---'+offsetValue);
its not working.. page error at set time zone.. is there any other way to get the offet value? Need to consider DST too..