Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Date.prototype.getTimezoneOffset() Method
2174 Views
Usage  
The getTimezoneOffset() method is used to return time-zone offset in minutes for mentioned date based on local time.
Syntax  
dateObject.getTimezoneOffset()
Example
var x = new Date();
var currentTimeZoneOffsetInHours = x.getTimezoneOffset()
document.write(currentTimeZoneOffsetInHours);
Output 
-330
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details