Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Date.prototype.toString() Method in Date Class of Javascript Syntax with Examples
1056 Views
Usage 
The toString() method is used to represent Date object in string format.
Syntax 
dateObject.toString()
Example
var currentdate = new Date();
lastdate = currentdate.toString();
document.write(lastdate);
Output 
Sat Nov 29 2014 14:29:42 GMT+0530 (India Standard Time)
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