Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Date.prototype.toTimeString() Method in Date Class of Javascript Syntax with Examples
2131 Views
Usage 
The toTimeString() method is used to display time portion of specified Date object.
Syntax 
dateObj.toTimeString()
Example
var date = new Date(2014, 7, 15, 14, 39, 7);

document.write(date.toString());    
document.write(date.toTimeString());
Output 
Fri Aug 15 2014 14:39:07 GMT+0530 (India Standard Time)
14:39:07 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