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:
|
技術的な詳細
で動作します: | Access2000から |
---|
その他の例
例
数値に基づいて平日の省略名を返します。
SELECT WeekdayName(3, true);
例
数値に基づいて平日の省略名を返し、月曜日を週の最初の日とします。
SELECT WeekdayName(3, true, 2);