Set Year : Date Set : Date Time JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Date Time » Date Set »

 

Set Year



    
<html>
<body>
<button onclick="var myDate = new Date(); 
                 myDate.setYear(2000); 
                 alert(myDate);">Date set year</button>
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Date Time
» Date Set