|
|
JavaScript Date() Method
JavaScript Date Object
Definition and Usage
The Date() method returns today's date and time.
Syntax
Example
Example
The following example prints today's date and time:
<script type="text/javascript">
document.write(Date());
</script>
|
The output of the code above will be:
Try it yourself »
|
JavaScript Date Object
The Creators of XMLSpy are Pleased to Announce
|
|
|