Seconds Property

Applies To   See Also

Specifies whether the seconds portion of a DateTime value is displayed in a text box. Available at design time and run time.

Syntax

Object.Seconds[ = nValue]

Settings

nValue

One of the following settings:

Setting Description
0 Off. The seconds portion of the DateTime value is not displayed.
1 On. The seconds portion of the DateTime value is displayed.
2 (Default) The SET SECONDS setting determines if the seconds portion of the DateTime value is displayed. If SET SECONDS is ON, the seconds portion of the DateTime value is displayed. If SET SECONDS is OFF, the seconds portion of the DateTime value is not displayed.

Remarks

The Seconds property setting is ignored if the DateFormat property is set to Short or Long.