Not with the built-in Date object , since they only know Local (as defined by the userโs browser and / or OS settings) and UTC . You can see this from the many cloned methods that the class has (for example, getHours / getUTCHours ).
getTimezoneOffset is the only time zone information that you really have, but it is also local, and it will probably give you +0 again (or +6 in my case):
var date = new Date("2012-01-17T12:55:00.000+01:00"); console.log(date.getTimezoneOffset() / 60.0);
You can try timezone-js (or one of its forks ), but you need to know the name of Olson's time zone , and not just the GMT / UTC offset:
var date = new new timezoneJS.Date('2012-01-17T12:55:00.000+01:00', 'Europe/Brussels'); alert(date.getTimezoneOffset() / 60.0);
source share