The toDateString() method converts the date part of a Date object into a readable string.
The toDateString() method converts the date part of a Date object into a readable string.
Date.toDateString()
A String, representing the date as a string
Convert today's date into a readable string:
//display the date as a string. var d = new Date(); var n = d.toDateString(); console.log(n);/*from w w w . j a v a 2s . c o m*/