Reference > TDBDate Control > TDBDate Control Properties > WeekOfYear Property (TDBDate) |
WeekOfYear Property (TDBDate)
Returns the week of year for the date set in the Value property.
TDBDate.WeekOfYear
Read-only at run time. Not available at design time.
This property allows you to determine the week of the year of a given date. For example, Mar. 20, 1998 will return 12, indicating it is the 12th week of the year.
When the Value property equals Null, the WeekOfYear property will return -1.
By default, the first day of the week will be picked up from the system.
This property is left in the control just for backward compatibility, and will not be supported in the future version. Therefore, we recommend you use the TDBDateX object included in the package instead, which provides the equivalent feature (WeekInfo method).
See Also