Javascript ToGMTString() Function

The toGMTString() function of date object converts the date to GMT (UTC). Use it for example to get date as GMT (UTC).

Syntax

Javascript ToGMTString() Function Example

This will produce following result