ढाँचा:Weekday in month

नेपाली विकिपीडियाबाट
यसमा जानुहोस्: परिचालन, खोज्नुहोस्
[edit] [purge] Template documentation

विषयसूची

Usage[सम्पादन गर्ने]

{{Weekday in month|YEAR|MONTH|N|Q}}

  • YEAR – The year in numeric format
  • MONTH – The month in numeric format
  • N – The weekday with 0 = Sunday, 1 = Monday, ..., 6 = Saturday
  • Q – The Nth weekday with 1 = First, 2 = Second, 3 = Third, ..., or -1 = last day, -2 = second to last day,

Code[सम्पादन गर्ने]

Raw formula: 7 * Q - 6 + (N - DayOfWeek(Year,Month,1)) % 7

Examples[सम्पादन गर्ने]

Holiday 2006 2007 2008 2009 2010
Day Code Day Code Day Code Day Code Day Code
MLK Jr Day – 3rd Monday in January Jan 16 16 {{weekday in month|2006|1|1|3}} Jan 15 15 {{weekday in month|2007|1|1|3}} Jan 21 21 {{weekday in month|2008|1|1|3}} Jan 19 19 {{weekday in month|2009|1|1|3}} Jan 18 18 {{weekday in month|2010|1|1|3}}
Presidents Day – 3rd Monday in February Feb 20 20 {{weekday in month|2006|2|1|3}} Feb 19 19 {{weekday in month|2007|2|1|3}} Feb 18 18 {{weekday in month|2008|2|1|3}} Feb 16 16 {{weekday in month|2009|2|1|3}} Feb 15 15 {{weekday in month|2010|2|1|3}}
Memorial Day -- Last Monday in May May 29 29 {{weekday in month|2006|5|1|-1}} May 28 28 {{weekday in month|2007|5|1|-1}} May 26 26 {{weekday in month|2008|5|1|-1}} May 25 25 {{weekday in month|2009|5|1|-1}} May 31 31 {{weekday in month|2010|5|1|-1}}
Labor Day – 1st Monday in September Sep 4 4 {{weekday in month|2006|9|1|1}} Sep 3 3 {{weekday in month|2007|9|1|1}} Sep 1 1 {{weekday in month|2008|9|1|1}} Sep 7 7 {{weekday in month|2009|9|1|1}} Sep 6 6 {{weekday in month|2010|9|1|1}}
Columbus Day – 2nd Monday in October Oct 9 9 {{weekday in month|2006|10|1|2}} Oct 8 8 {{weekday in month|2007|10|1|2}} Oct 13 13 {{weekday in month|2008|10|1|2}} Oct 12 12 {{weekday in month|2009|10|1|2}} Oct 11 11 {{weekday in month|2010|10|1|2}}
Thanksgiving – 4th Thursday in November Nov 23 23 {{weekday in month|2006|11|4|4}} Nov 22 22 {{weekday in month|2007|11|4|4}} Nov 27 27 {{weekday in month|2008|11|4|4}} Nov 26 26 {{weekday in month|2009|11|4|4}} Nov 25 25 {{weekday in month|2010|11|4|4}}
Father's Day – 3rd Sunday in June Jun 18 18 {{weekday in month|2006|6|0|3}} Jun 17 17 {{weekday in month|2007|6|0|3}} Jun 15 15 {{weekday in month|2008|6|0|3}} Jun 21 21 {{weekday in month|2009|6|0|3}} Jun 20 20 {{weekday in month|2010|6|0|3}}
Mother's Day May 14 14 {{weekday in month|2006|5|0|2}} May 13 13 {{weekday in month|2007|5|0|2}} May 11 11 {{weekday in month|2008|5|0|2}} May 10 10 {{weekday in month|2009|5|0|2}} May 9 9 {{weekday in month|2010|5|0|2}}

See also[सम्पादन गर्ने]