ComponentOne True DBInput Pro 8.0
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.

Syntax

object.Half

Read-only at run time. Not available at design time.

Values

Description

Run Time

1 - First half (1/1-6/30)

dbi1stHalfOfYear

2 - Second half (7/1-12/31)

dbi2ndHalfOfYear

Remarks

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

Value Property (TDBDateX)

Quarter Property (TDBDateX)

FiscalHalf Property (TDBDateX)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback