Pages

Javascript Date - toUTCString Method

Description:

This method converts a date to a string, using the universal time convention.

Syntax:

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

Return Value:

Returns converted date to a string, using the universal time convention.

Example:

<html>
<head>
<title>JavaScript toUTCString Method</title>
</head>
<body>
<script type="text/javascript">
   var dateobject = new Date(1993, 6, 28, 14, 39, 7);
   document.write( dateobject.toUTCString() ); 
</script>
</body>
</html>
This will produce following result:
Wed, 28 Jul 1993 09:09:07 UTC 
 
+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  
+enJineS +JavascriptU +Javascript Tutor   

No comments:

Flag Counter
| Copyright © 2013 Remote Tutor