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