<html> <body> <button onclick="var myDate = new Date(); alert(myDate.getYear());">Date: GETYEAR</button> </body> </html>