JavaScript Date valueOf()
JavaScript Date valueOf()
The valueOf() method is used to return the primitive value of a date object. It is a number of milliseconds since January 1, 1970, UTC.
Syntax:-
Its syntax is:- Date.valueOf()
Return:-
Its return is:- number of milliseconds between a specific date and January 1, 1970 midnight