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.
object.PosInMonth
Read-only at run time. Not available at design time.
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 |
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