Set date: setDate, setHour
<html> <body> <script type="text/javascript"> var d = new Date() d.setFullYear("2005") document.write(d) </script> </body> </html>