Javascript SetSeconds() Function

The setSeconds() function of date object sets the seconds in date object. Use it for example to sets seconds in date.

Syntax

Javascript SetSeconds Function Example

This will produce following result