The getSeconds() method of date object returns seconds of the specified date. Use it for example to get seconds of the specified date.
Syntax
This will produce following result