toUTCString
Summary
Returns a date converted to a string formatted according to UTC conventions.
Syntax
toUTCString()
Return Value
String that contains the date formatted using UTC conventions: Fri, 09 May 2014 00:00:00 GMT
Examples
var date = new Date("2014-05-09");
console.log(date.toUTCString()); // "Fri, 09 May 2014 00:00:00 GMT"
Remarks
UTC is the acronym of Universal Coordinated Time.
The Format returned by this toGMTString was defined by [1] and was refined by RFC-1123
See also
Other articles
- toString Method (Date)
- toDateString Method (Date)
- toGMTString Method (Date)
- toISOString Method (Date)
- toLocaleString Method (Date)
- toLocaleDateString Method (Date)
- toLocaleTimeString Method (Date)
- toTimeString Method (Date)
External resources
Specification
ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011
Attributions
Microsoft Developer Network: Article