Use24HourFormat Property

Applies to TestComplete 15.20, last modified on January 19, 2022

Specifies whether 24-hour or 12-hour time representation format is used.

Declaration

componentPropObj.Use24HourFormat
Read-Write Property Boolean
componentPropObj     One of the objects listed in the Applies To section  

Applies To

This property applies to the following objects:

TcxTimeEditProperties

Description

Use the Use24HourFormat property to select how the time value will be represented in the editor. If this property is enabled then the hour portion ranges from 0 to 23, otherwise it ranges from 1 to 12 and a time suffix (the AM or PM in the English locale) is used to denote time.

To specify which portions of the time value are displayed, use the TimeFormat property.

Property Value

This property returns True if the 24-hour format is applied.

See Also

TimeFormat Property

Highlight search results