<html> <body> <button onclick="var myDate = new Date(); myDate.setDate(20); alert(myDate);">Date: set Date</button> </body> </html>