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


Subscribe to our YouTube Channel here


Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com




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




    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer