Hours Property
Specifies whether the hours portion of a DateTime value is displayed in 12- or 24-hour time format. Available at design time and run time.
Object.Hours[ = nValue]
Return Value
nValue
One of the following settings:Setting
Description
0
(Default) The SET HOURS setting determines whether the hours portion of a DateTime value is displayed in 12- or 24-hour time format. If SET HOURS is 12, the hours portion of a DateTime value is displayed in 12-hour time format. If SET HOURS is 24, the hours portion of a DateTime value is displayed in 24-hour time format.
12
The hour portion of the DateTime value is displayed in a 12-hour time format.
24
The hour portion of the DateTime value is displayed in a 24-hour time format.
Remarks
Applies To: TextBox Control (Visual FoxPro)
The Hours property setting is ignored if the DateFormat property is set to Short or Long.