| 
     
 
 
<HTML> 
<HEAD> 
<TITLE>Using the Date Object Type</TITLE> 
</HEAD> 
<BODY> 
<H1>Using the Date Object Type</H1> 
<SCRIPT LANGUAGE="JavaScript"><!-- 
currentDate = new Date() 
with (currentDate) { 
 document.write("Date: "+(getMonth()+1)+"/"+getDate()+"/"+getFullYear() +"<BR>") 
 document.write("Time: "+getHours()+":"+getMinutes()+":" +getSeconds()) 
} 
// --></SCRIPT> 
</BODY> 
</HTML> 
            
        
    
    |