Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Objects
Date Object
METHOD: Date::toGMTString
object.
toGMTString( )
This method converts a local date to Greenwich Mean Time.
The following code uses the
toGMTString
method to convert the date set in the myDate object to Greenwich Mean Time and returns this date as a string.
Code:
myDate = new Date()
document.write(myDate.toGMTString())
Output:
Fri, 29 Oct 1999 16:28:58 UTC
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information