ComponentOne True DBInput Pro 8.0
Quarter Property (TDBDateX)

 

Reference> TDBDateX Object> TDBDateX Object Properties> Quarter Property (TDBDateX)

Quarter Property (TDBDateX)

The Quarter property returns the quarter (1 - 4) for year of the underlying date value.

Syntax

control.Quarter

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

Values

Description

Run Time

1 - First quarter (1/1-3/31)

dbi1stQuarterOfYear

2 - Second quarter (4/1-6/30)

dbi2ndQuarterOfYear

3 - Third quarter (7/1-9/30)

dbi3rdQuarterOfYear

4 - Fourth quarter (10/1-12/31)

dbi4thQuarterOfYear

Remarks

After dividing twelve months (one year) into four, the quarter to which the date value belongs is returned. When the month is between January through March, a 1 would be returned, 2 for April through June, 3 for July through September, and 4 for October through December.

When the Value property equals Null, the Quarter property will return a -1.

The quarter normally used for accounting packages can be retrieved by using the FiscalQuarter property.

This property is left in the control just for backward compatibility, and will not be supported in the future versions. Therefore, we recommend you to use the DateX object included in the package instead, which provides the equivalent feature.

See Also

FiscalQuarter Property (TDBDateX)

 

 


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

Product Support Forum  |  Documentation Feedback