サポート対象:バッチ、高速
Returns the day of the week of a date or timestamp as a number from 1 to 7, where the first day of the week is 1.
式のカテゴリー: 日時
出力タイプ: Integer
説明: Weeks start on Monday by default, so Monday is 1 and Sunday is 7
引数の値:
date| date | 出力 |
|---|---|
| 2024-01-08 | 1 |
| 2024-01-13 | 6 |
| 2024-01-07 | 7 |
説明: Weeks that start on Sunday count Sunday as 1 and Saturday as 7
引数の値:
dateSUNDAY| date | 出力 |
|---|---|
| 2024-01-07 | 1 |
| 2024-01-08 | 2 |
| 2024-01-13 | 7 |
説明: Timestamps give the day of the week of their date
引数の値:
SUNDAY出力: 1
説明: Weeks can start on any day, which then counts as 1
引数の値:
dateWEDNESDAY| date | 出力 |
|---|---|
| 2024-01-10 | 1 |
| 2024-01-07 | 5 |
| 2024-01-09 | 7 |
引数の値:
date| date | 出力 |
|---|---|
| null | null |