15.9.2 Date as a function

2010-07-19

string Date()

Return a string representation of the current time (UTC).

It returns (new Date).toString(), where Date is the default Date object and toString the default Date.prototype.toString method.

Example in Firefox: Mon Jul 19 2010 19:12:02 GMT+0200