Using the Date Object : Date : Development JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Development » Date »

 

Using the Date Object




<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>
           
       



-

Leave a Comment / Note


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

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Development
» Date