<html> <body> <button onclick="var myDate = new Date(); alert(myDate.getTimezoneOffset());"> Date: get Timezone Offset </button> </body> </html>