javascript get date timezone offset

 

 

 

 

javascript - Will moment-timezone.js allow me to pass the timezone abbreviation in and get the converted date/time. javascript - Moment.Js: Offsetting dates using UTC and Timezone offset. window.alert(new Date().getTimezoneOffset()) . The time zone offset returned.Modifying the above example to get the timezone in hours: