JavaScript getTimezoneOffset

JavaScript getTimezoneOffset is one of the Date Functions, which returns the time zone offset of a given date in minutes. The syntax for this function is:


This JavaScript get Timezone Offset example returns the local time zone offset in minutes.

<!DOCTYPE html>
    <title> Function </title>
    <h1> Example </h1>
  var dt = Date("April 1, 2017 10:12:22.0716");  
  document.write("Date and Time : " + dt);
  document.write("Timezone Offset using getTimezoneOffset : " + dt.getTimezoneOffset());
JavaScript getTimezoneOffset Example

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.