setSecond()

Sets the value of the Second calendar field.

Syntax

Calendar setSecond(Numeric value)
  1. value is the second to set.

Usage

For example, set the value of the Second calendar field by calling:
Calendar.fromDate(Date.parseString("05/08/1999","mm/dd/yyyy")).setSecond(30).toDate().format("MM/dd/yyyy hh:mm:ss")
This example populates a Word Box.