Date.prototype.toDateString

Returns a date as a string value.

Syntax

toDateString()

Return value

A string.

Examples

new Date("2023-03-06T12:13:14Z").toDateString()
"Mon Mar 06 2023"