Date.prototype.toString

Returns a string representation of a date. The format of the string depends on the locale.

If the date is invalid, returns the string "Invalid Date".

Syntax

toString()

Return value

A string.