Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC.
Syntaxdate.valueOf()
Return Value
The stored time value in milliseconds since midnight, January 1, 1970 UTC. This is the same value as getTime. The date object is any instance of a Date.
ExamplesThe following example illustrates the use of the valueOf method with a date.
var myDate = new Date();
myDate.setFullYear(2100, 5, 5);
if (myDate.getTime() == myDate.valueOf())
document.write("values are the same");
else
document.write("values are different");
Attributions
Microsoft Developer Network: Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4