The valueOf() function of date object returns the time value in milliseconds. Use it for example to get time in milliseconds.
Syntax
This will produce following result