Search
We can use toString() to convert a Date instance into a string containing the date, time and timezone.
toString()
Date
The toDateString() converts a Date into a string that only contains the date.
toDateString()