Convert today's date into a readable string:
The result of n will be:
The toDateString() method converts the date (not the time) of a Date object into a readable string.
![]()
The toDateString() method is supported in all major browsers.
| Type | Description |
|---|---|
| String | The date as a string |
JavaScript Date Object
Your message has been sent to W3Schools.