getTimezoneOffset(): Difference in minutes

JavaScript collects local time ( client computer ) time and it also knows the UTC time by knowing the time zone setting of the computer. So using these two JavaScript can give us difference in these two times in minutes. Here is a sample.
<script type="text/javascript"> 
var dt= new Date();
document.write(dt.getTimezoneOffset());
</script>
The output is here


Displaying UTC string

Your Rating





More on JavaScript Date & Time

Post your comments , suggestion , error , requirements etc here .




HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer