Usage
The toDateString() method is used to display date portion of specified Date object
|
Syntax
dateObj.toDateString()
|
var date = new Date(2014, 7, 15, 14, 39, 7);
document.write(date.toString());
document.write(date.toDateString());
|
Output
Fri Aug 15 2014 14:39:07 GMT+0530 (India Standard Time)
Fri Aug 15 2014
|