Set Seconds Method

The Set Seconds method sets the second of dateVar to the value you specify in the second argument. You can optionally use this method to set the second argument to the value that you specify in the millisecond argument.

Format

dateVar.setSeconds(second[, millisecond])

The following table describes the arguments for the Set Seconds method.

Argument Description

second

For more information, see Values for Dates and Times.

millisecond