Date.toUTCString

toUTCString – Converts a Date object to a string.

Description

Date.toUTCString()

Return values

string primitive.

Examples

Example #1 – toUTCString example
var date = new Date(); console.log(date.toUTCString()); // Returns a string representation of the given date and time.

External references