Reference > TDBDateX Object > TDBDateX Object Properties > Century Property (TDBDateX) |
Century Property (TDBDateX)
Returns the year century of the date set in the Value property.
object.Century
Read-only at run time. Not available at design time.
When the Value property equals Null, the Century property returns a -1.
The following list shows the valid range for each century:
Century Range
------- -----
1 100/1/1 - 100/12/31
2 101/1/1 - 200/12/31
3 201/1/1 - 300/12/31
...
19 1801/1/1 - 1900/12/31
20 1901/1/1 - 2000/12/31
21 2001/1/1 - 2100/12/31
...
98 9701/1/1 - 9800/12/31
99 9801/1/1 - 9900/12/31
100 9901/1/1 - 9999/12/31
See Also