ComponentOne True DBInput Pro 8.0
PosInMonth Property (TDBDateX)

 

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

PosInMonth Property (TDBDateX)

Returns the position in month for the date set in the Value property.

Syntax

object.PosInMonth

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

Values

Description

Run Time

1 - Start of month (1-10)

dbiStartOfMonth

2 - Mid of month (11-20)

dbiMidOfMonth

3 - End of month (21-28, 29, 30, 31)

dbiEndOfMonth

Remarks

The PosInMonth property returns the position (1 - 3) in month of the underlying date value.

After dividing one month into three, the third to which the date value belongs is returned. When the month is between 1st through 10th, a 1 would be returned, 2 for 11th through 20th and 3 for 21st to 28th/29th/30th/31st.

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

See Also

Value Property (TDBDateX)

Month Property (TDBDateX)

 

 


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

Product Support Forum  |  Documentation Feedback