Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Date.prototype.toDateString() Method in Date Class of Javascript Syntax with Examples
2158 Views
Usage 
The toDateString() method is used to display date portion of specified Date object
Syntax 
dateObj.toDateString()
Example:
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
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details