JavaScript Objects: Dates - The Date() Method
(Page 3 of 5 )
The date Method() is used to return the value of today's date:
<html>
<body>
<script type="text/javascript">
document.write("Today's date is: <br />")
document.write(Date())
</script>
</body>
</html>
The result of this code is:
Today's date is:
Wed Oct 28 19:39:44 2007
Next: The GetDate() Method >>
More JavaScript Articles
More By James Payne