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.
Method | |||||
---|---|---|---|---|---|
toDateString() | Yes | Yes | Yes | Yes | Yes |
None |
Return Value: | A String, representing the date as a string |
---|