Easy Tutorial
❮ Jsref Utc Prop Doc Body ❯

JavaScript toDateString() Method

JavaScript Date Object

Example

Convert the date portion of a Date object into a readable string:

n Output result:


Definition and Usage

The toDateString() method converts the date portion of a Date object into a string and returns the result.


Browser Support

All major browsers support the toDateString() method.


Syntax

Return Value

Type Description
String The date as a string output.

JavaScript Date Object

❮ Jsref Utc Prop Doc Body ❯