Reference > TDBDateX Object > TDBDateX Object Properties > Half Property (TDBDateX) |
Half Property (TDBDateX)
The Half property returns the half of the year of the underlying date value dividing twelve months (one year) into two halves, the half to which the date value belongs is returned.
object.Half
Read-only at run time. Not available at design time.
Description |
Run Time |
1 - First half (1/1-6/30) |
dbi1stHalfOfYear |
2 - Second half (7/1-12/31) |
dbi2ndHalfOfYear |
When the month is between January through June, a 1 would be returned, 2 for July through December.
When the Value property equals Null, the Half property will return a -1.
The half of year normally used for accounting packages can be retrieved by using the FiscalHalf property.
See Also