Reference > TDBDateX Object > TDBDateX Object Properties > Hour Property (TDBDateX) |
Hour Property (TDBDateX)
The Hour property returns the hour for the underlying value in the range of 0 - 12 depending on the 12-hour mode specified in the Hour12Mode property.
object.Hour
Read-only at run time. Not available at design time.
If the Value property equals Null, the Hour property will return a -1.
Use the AMPM property to determine A.M. or P.M. for the time set for the underlying value.
See Also