valueOf()
A date converted to a number and the number is the same number of milliseconds as returned by the getTime function.
This function will convert a Date object to a number.
Examples