MS Access WeekdayName()ฟังก์ชัน
ตัวอย่าง
ส่งกลับชื่อวันทำงานตามตัวเลข:
SELECT WeekdayName(3);
ความหมายและการใช้งาน
ฟังก์ชัน WeekdayName() จะส่งกลับชื่อวันทำงานโดยยึดตามตัวเลข
ไวยากรณ์
WeekdayName(number, abbreviate, firstdayofweek)
ค่าพารามิเตอร์
Parameter | Description |
---|---|
number | Required. A value from 1 to 7, that represent the day of the week |
abbreviate | Optional. A Boolean value. True = the weekday name should be abbreviated. False = the weekday name should not be abbreviated. False is default |
firstdayofweek | Optional. Specifies the first day of the week.
Can be one of the following values:
|
รายละเอียดทางเทคนิค
ทำงานใน: | จากการเข้าถึง 2000 |
---|
ตัวอย่างเพิ่มเติม
ตัวอย่าง
ส่งคืนชื่อวันทำงานแบบย่อตามตัวเลข:
SELECT WeekdayName(3, true);
ตัวอย่าง
ส่งกลับชื่อวันทำงานแบบย่อตามตัวเลข และให้วันจันทร์เป็นวันแรกของสัปดาห์:
SELECT WeekdayName(3, true, 2);