The toGMTString() function of date object converts the date to GMT (UTC). Use it for example to get date as GMT (UTC).
Syntax
This will produce following result