The Weekday() function returns the weekday number for a given date.
This function returns an integer between 1 and 7.
Weekday(
date,
firstdayofweek)
Parameter | Description |
---|---|
date | Required. A valid date |
firstdayofweek | Optional. Specifies the first day of the week. Can be one of the following values:
|
Works in: | From Access 2000 |
---|
Return the weekday number for the specified date, setting Monday as the first day of week:
SELECT Weekday(#05/17/2017#, 2);
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!