Converts the date into a string, using Internet (GMT) conventions.

Syntax

<oRef>.toGMTString( )

<oRef>

The Date object you want to convert.

Property of

Date

Description

The toGMTString( ) method converts the date, as exists in the operating system’s time zone setting, to GMT and returns a string such as, "Tue, 07 May 2002 02:55:27 GMT".