<html> <body> <button onclick="var myDate = new Date(); alert(myDate.getUTCHours());">get UTC hours</button> </body> </html>