Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
Date.prototype.getTime() Method in Date Class of Javascript Syntax with Examples
2078 Views
Usage  
The getTime() method is used to return the numeric value for mentioned date based on universal time.
Syntax  
dateObject.getTime()
Example
var Newyear = new Date('January 5, 2015 21:00:00');
var time = Newyear.getTime();
document.write(time);
Output 
1420471800000
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