JavaScript Date toUTCString()
JavaScript Date toUTCString()
The toUTCString() method is used to return a date object as a string according to UTC which is basically Universal Coordinated Time and is the same as GMT time.
Syntax:-
Its syntax is:- Date.toUTCString()
Return:-
Its return is:- string containing date and time as UTC