Javascript Date ValueOf() Function

The valueOf() function of date object returns the time value in milliseconds. Use it for example to get time in milliseconds.

Syntax

Javascript Date ValueOf() Function Example

This will produce following result