The setSeconds() function of date object sets the seconds in date object. Use it for example to sets seconds in date.
Syntax
This will produce following result