| Reference > TDBDateX Object > TDBDateX Object Properties > Weekday Property (TDBDateX) |
Weekday Property (TDBDateX)
Returns the day of week for the date set in the Value (TDBDate) and Value (TDBDateX) properties.
object.Weekday
Read-only at run time. Not available at design time.
|
Description |
Run Time |
|
1 - Sunday |
dbiSunday |
|
2 - Monday |
dbiMonday |
|
3 - Tuesday |
dbiTuesday |
|
4 - Wednesday |
dbiWednesday |
|
5 - Thursday |
dbiThursday |
|
6 - Friday |
dbiFriday |
|
7 - Saturday |
dbiSaturday |
When the Value property equals Null, the Weekday property will return a -1.
The Weekday property returns the same number as the Weekday function in Visual Basic.
See Also