/

HTML / CSS / JavaScript Tutorial

JavaScript Date method: getTimezoneOffset()

[this page | pdf | back links]

The getTimezoneOffset() method (when applied to a JavaScript date) returns the time difference between UTC time and local time, in minutes.

 

It has the following syntax (with no parameters):

 

date.getTimezoneOffset()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Dates


Desktop view | Switch to Mobile