Pages

Javascript Date() Method

Description:

Javascript Date() method returns today's date and time and does not need any object to be called

Syntax:

 

Date()
Here is the detail of parameters:
  • NA

Return Value:

Returns today's date and time

Example:

<html>
<head>
<title>JavaScript Date Method</title>
</head>
<body>
<script type="text/javascript">
   var dt = Date();
   document.write("Date and Time : " + dt ); 
</script>
</body>
</html>
This will produce following result:
Date and Time : Wed Aug 27 2008 20:12:50 GMT+0530 
                (India Standard Time)
 
 
+JavaScript +JavaScript Frameworks Links +Javascript Development 
+JavaScript's and More, Software and Marketing +JavascriptU +JavaScriptOn 
+Javascript Problems +JavaScriptOn 
 +javaScript is a creek in West Virginia in the summe 
 
 

No comments:

Flag Counter
| Copyright © 2013 Remote Tutor