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