ទំព័រគំរូ:Weekday in month
Usage
កែប្រែ- Code
Note that the order of the input can be reversed. The following give the same output.
{{Weekday in month|
y|
m|
w|
n}}
{{Weekday in month|
n|
w|
m|
y}}
Note that the year is optional. The following give the nth w-day of month m this year.
{{Weekday in month||
m|
w|
n}}
{{Weekday in month|
n|
w|
m}}
- Parameters
y | year | numeric format, certain words, blank
|
---|---|---|
m | month | numeric format, spelt out in full or abbreviated
|
w | weekday | numeric format, spelt out in full or abbreviated
|
n | count | numeric format, spelt out in full or abbreviated
|
- Examples
|
|
|
Calculation
កែប្រែThe template then gives j, the day of the month, as caclulated by the following formulae.
- j = 7×n − 6 + (w − w1) mod 7 (for positive n)
- j = t + 7×(n + 1) − (wt − w) mod 7 (for negative n)
Where t is the last day of the month, wt is the ISO weekday number of the last day of the month, w1 is the ISO weekday number of the first day of the month and n and w are as defined above.
Examples
កែប្រែyear | MLK Jr Day (US) | Presidents Day (US) | Memorial Day (US) | Labor Day (US) | Columbus Day (US) | Father's Day (Australia) |
Mother's Day (many countries) |
Thanksgiving (Norfolk Island) |
Melbourne Cup Day (Australia) |
---|---|---|---|---|---|---|---|---|---|
3rd Monday in January | 3rd Monday in February | Last Monday in May | 1st Monday in September | 2nd Monday in October | 1st Sunday in September | 2nd Sunday in May | last Wednesday of November | first Tuesday in November | |
២០១៩ | Expression error: Unexpected > operator. January | Expression error: Unexpected < operator. February | Expression error: Unexpected > operator. May | Expression error: Unrecognized punctuation character "១". September | Expression error: Unrecognized punctuation character "១". October | Expression error: Unrecognized punctuation character "០". September | Expression error: Unrecognized punctuation character "០". May | Expression error: Unexpected < operator. November | Expression error: Unrecognized punctuation character "២". November |
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
| |
២០២០ | Expression error: Unexpected > operator. January | Expression error: Unexpected < operator. February | Expression error: Unexpected > operator. May | Expression error: Unrecognized punctuation character "១". September | Expression error: Unrecognized punctuation character "១". October | Expression error: Unrecognized punctuation character "០". September | Expression error: Unrecognized punctuation character "០". May | Expression error: Unexpected < operator. November | Expression error: Unrecognized punctuation character "២". November |
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
| |
២០២១ | Expression error: Unexpected > operator. January | Expression error: Unexpected < operator. February | Expression error: Unexpected > operator. May | Expression error: Unrecognized punctuation character "១". September | Expression error: Unrecognized punctuation character "១". October | Expression error: Unrecognized punctuation character "០". September | Expression error: Unrecognized punctuation character "០". May | Expression error: Unexpected < operator. November | Expression error: Unrecognized punctuation character "២". November |
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
| |
២០២២ | Expression error: Unexpected > operator. January | Expression error: Unexpected < operator. February | Expression error: Unexpected > operator. May | Expression error: Unrecognized punctuation character "១". September | Expression error: Unrecognized punctuation character "១". October | Expression error: Unrecognized punctuation character "០". September | Expression error: Unrecognized punctuation character "០". May | Expression error: Unexpected < operator. November | Expression error: Unrecognized punctuation character "២". November |
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
| |
២០២៣ (last year) |
Expression error: Unexpected > operator. January | Expression error: Unexpected < operator. February | Expression error: Unexpected > operator. May | Expression error: Unrecognized punctuation character "១". September | Expression error: Unrecognized punctuation character "១". October | Expression error: Unrecognized punctuation character "០". September | Expression error: Unrecognized punctuation character "០". May | Expression error: Unexpected < operator. November | Expression error: Unrecognized punctuation character "២". November |
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
| |
២០២៤ (this year) |
Expression error: Unexpected > operator. January | Expression error: Unexpected < operator. February | Expression error: Unexpected > operator. May | Expression error: Unrecognized punctuation character "១". September | Expression error: Unrecognized punctuation character "១". October | Expression error: Unrecognized punctuation character "០". September | Expression error: Unrecognized punctuation character "០". May | Expression error: Unexpected < operator. November | Expression error: Unrecognized punctuation character "២". November |
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
| |
២០២៥ (next year) |
Expression error: Unexpected > operator. January | Expression error: Unexpected < operator. February | Expression error: Unexpected > operator. May | Expression error: Unrecognized punctuation character "១". September | Expression error: Unrecognized punctuation character "១". October | Expression error: Unrecognized punctuation character "០". September | Expression error: Unrecognized punctuation character "០". May | Expression error: Unexpected < operator. November | Expression error: Unrecognized punctuation character "២". November |
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
{{weekday in month
|
See also
កែប្រែ- {{WEEKDAY}}
- {{Weekday in month elapsed}}