From http://www.w3schools.com (Copyright Refsnes Data)
The toGMTString() method should not be used. Use the toUTCString() method instead!
JavaScript Date Object
The toGMTString() method converts a Date object, according to Greenwich Mean Time (GMT), to a string and returns the result.
| dateObject.toGMTString() |
Note: This method should no longer be used! Use the toUTCString() method instead!!
ExampleConvert today's date to a string (according to GMT):
The output of the code above will be: Try it yourself » |
JavaScript Date Object
From http://www.w3schools.com (Copyright Refsnes Data)