Freigeben über


Seconds Property

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

Object.Seconds[ = nValue]

Property Values

  • 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.

See Also

Century Property | DateFormat Property | DateMark Property | Hours Property | SET SECONDS | StrictDateEntry Property

Applies To: TextBox