A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Date/valueOf below:

valueOf ยท WebPlatform Docs

valueOf Summary

Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC.

Syntax
date.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.

Examples

The 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

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