Standard built-ins

Date.now()

Try the free JavaScript compiler

Return current wall-clock milliseconds since epoch, which may change due to clock adjustments. This example checks API presence rather than producing a nondeterministic timestamp.

Formal Syntax & Structure

javascript syntaxjavascript
Date.now()

Return Value

Number

Current timestamp.

Working Example

Example Snippetjavascript
console.log(typeof Date.now);
JavaScript Reference