ES6 - toUTCString() Method
Advertisements
This method converts a date to a string, using the universal time convention.
Syntax
Date.toUTCString ()
Return Value
Returns converted date to a string, using the universal time convention.
Example
var dateobject = new Date(1993, 6, 28, 14, 39, 7); console.log( dateobject.toUTCString() );
Output
Wed, 28 Jul 1993 09:09:07 GMT
es6_date.htm
Advertisements