Changes
Jump to navigation
Jump to search
Changed the headings from <nowiki>; heading <nowiki>:</nowiki></nowiki> to use Headings, which are editable by section
{{documentation subpage}}
This template computes the number of days for the month of year in parameter.
=== Syntax ===
: <tt><nowiki>{{</nowiki>MONTHDAYS|</tt>''year''<tt>|</tt>''month''<tt>}}</tt>
=== Examples for all months of a leap year ===
: <tt><nowiki>{{MONTHDAYS|2000|1}}</nowiki></tt> returns {{MONTHDAYS|2000|1}}
: <tt><nowiki>{{MONTHDAYS|2000|2}}</nowiki></tt> returns {{MONTHDAYS|2000|2}}
: <tt><nowiki>{{MONTHDAYS|2000|3}}</nowiki></tt> returns {{MONTHDAYS|2000|3}}
: <tt><nowiki>{{MONTHDAYS|2000|4}}</nowiki></tt> returns {{MONTHDAYS|2000|4}}
: <tt><nowiki>{{MONTHDAYS|2000|5}}</nowiki></tt> returns {{MONTHDAYS|2000|5}}
: <tt><nowiki>{{MONTHDAYS|2000|6}}</nowiki></tt> returns {{MONTHDAYS|2000|6}}
: <tt><nowiki>{{MONTHDAYS|2000|7}}</nowiki></tt> returns {{MONTHDAYS|2000|7}}
: <tt><nowiki>{{MONTHDAYS|2000|8}}</nowiki></tt> returns {{MONTHDAYS|2000|8}}
: <tt><nowiki>{{MONTHDAYS|2000|9}}</nowiki></tt> returns {{MONTHDAYS|2000|9}}
: <tt><nowiki>{{MONTHDAYS|2000|10}}</nowiki></tt> returns {{MONTHDAYS|2000|10}}
: <tt><nowiki>{{MONTHDAYS|2000|11}}</nowiki></tt> returns {{MONTHDAYS|2000|11}}
: <tt><nowiki>{{MONTHDAYS|2000|12}}</nowiki></tt> returns {{MONTHDAYS|2000|12}}
=== Examples for all months of a non-leap year ===
: <tt><nowiki>{{MONTHDAYS|2001|1}}</nowiki></tt> returns {{MONTHDAYS|2001|1}}
: <tt><nowiki>{{MONTHDAYS|2001|2}}</nowiki></tt> returns {{MONTHDAYS|2001|2}}
: <tt><nowiki>{{MONTHDAYS|2001|3}}</nowiki></tt> returns {{MONTHDAYS|2001|3}}
: <tt><nowiki>{{MONTHDAYS|2001|4}}</nowiki></tt> returns {{MONTHDAYS|2001|4}}
: <tt><nowiki>{{MONTHDAYS|2001|5}}</nowiki></tt> returns {{MONTHDAYS|2001|5}}
: <tt><nowiki>{{MONTHDAYS|2001|6}}</nowiki></tt> returns {{MONTHDAYS|2001|6}}
: <tt><nowiki>{{MONTHDAYS|2001|7}}</nowiki></tt> returns {{MONTHDAYS|2001|7}}
: <tt><nowiki>{{MONTHDAYS|2001|8}}</nowiki></tt> returns {{MONTHDAYS|2001|8}}
: <tt><nowiki>{{MONTHDAYS|2001|9}}</nowiki></tt> returns {{MONTHDAYS|2001|9}}
: <tt><nowiki>{{MONTHDAYS|2001|10}}</nowiki></tt> returns {{MONTHDAYS|2001|10}}
: <tt><nowiki>{{MONTHDAYS|2001|11}}</nowiki></tt> returns {{MONTHDAYS|2001|11}}
: <tt><nowiki>{{MONTHDAYS|2001|12}}</nowiki></tt> returns {{MONTHDAYS|2001|12}}
=== Examples for the February month on some near years ===
: <tt><nowiki>{{MONTHDAYS|1901|2}}</nowiki></tt> returns {{MONTHDAYS|1901|2}}
: <tt><nowiki>{{MONTHDAYS|1904|2}}</nowiki></tt> returns {{MONTHDAYS|1904|2}}
: <tt><nowiki>{{MONTHDAYS|1992|2}}</nowiki></tt> returns {{MONTHDAYS|1992|2}}
: <tt><nowiki>{{MONTHDAYS|1996|2}}</nowiki></tt> returns {{MONTHDAYS|1996|2}}
: <tt><nowiki>{{MONTHDAYS|1999|2}}</nowiki></tt> returns {{MONTHDAYS|1999|2}}
: <tt><nowiki>{{MONTHDAYS|2000|2}}</nowiki></tt> returns {{MONTHDAYS|2000|2}}
: <tt><nowiki>{{MONTHDAYS|2001|2}}</nowiki></tt> returns {{MONTHDAYS|2001|2}}
: <tt><nowiki>{{MONTHDAYS|2002|2}}</nowiki></tt> returns {{MONTHDAYS|2002|2}}
: <tt><nowiki>{{MONTHDAYS|2003|2}}</nowiki></tt> returns {{MONTHDAYS|2003|2}}
: <tt><nowiki>{{MONTHDAYS|2004|2}}</nowiki></tt> returns {{MONTHDAYS|2004|2}}
: <tt><nowiki>{{MONTHDAYS|2005|2}}</nowiki></tt> returns {{MONTHDAYS|2005|2}}
: <tt><nowiki>{{MONTHDAYS|2006|2}}</nowiki></tt> returns {{MONTHDAYS|2006|2}}
: <tt><nowiki>{{MONTHDAYS|2007|2}}</nowiki></tt> returns {{MONTHDAYS|2007|2}}
: <tt><nowiki>{{MONTHDAYS|2008|2}}</nowiki></tt> returns {{MONTHDAYS|2008|2}}
: <tt><nowiki>{{MONTHDAYS|2012|2}}</nowiki></tt> returns {{MONTHDAYS|2012|2}}
: <tt><nowiki>{{MONTHDAYS|2099|2}}</nowiki></tt> returns {{MONTHDAYS|2099|2}}
=== Examples for the February month on some secular years ===
: <tt><nowiki>{{MONTHDAYS|1600|2}}</nowiki></tt> returns {{MONTHDAYS|1600|2}}
: <tt><nowiki>{{MONTHDAYS|1700|2}}</nowiki></tt> returns {{MONTHDAYS|1700|2}}
: <tt><nowiki>{{MONTHDAYS|1800|2}}</nowiki></tt> returns {{MONTHDAYS|1800|2}}
: <tt><nowiki>{{MONTHDAYS|1900|2}}</nowiki></tt> returns {{MONTHDAYS|1900|2}}
: <tt><nowiki>{{MONTHDAYS|2000|2}}</nowiki></tt> returns {{MONTHDAYS|2000|2}}
: <tt><nowiki>{{MONTHDAYS|2100|2}}</nowiki></tt> returns {{MONTHDAYS|2100|2}}
: <tt><nowiki>{{MONTHDAYS|2200|2}}</nowiki></tt> returns {{MONTHDAYS|2200|2}}
: <tt><nowiki>{{MONTHDAYS|2300|2}}</nowiki></tt> returns {{MONTHDAYS|2300|2}}
: <tt><nowiki>{{MONTHDAYS|2400|2}}</nowiki></tt> returns {{MONTHDAYS|2400|2}}
=== See also ===
: [[Template:YEARCC]]
: [[Template:YEARYY]]
: [[Template:CENTURY]]
: [[Template:IsLeapYear]]
: [[Template:JULIANDAY]]
: [[Template:WEEKDAY]]
: [[Template:CURRENTMONTHDAYS]]
<includeonly>
[[Category:Date-computing templates|MONTHDAYS]]
</includeonly>
This template computes the number of days for the month of year in parameter.
=== Syntax ===
: <tt><nowiki>{{</nowiki>MONTHDAYS|</tt>''year''<tt>|</tt>''month''<tt>}}</tt>
=== Examples for all months of a leap year ===
: <tt><nowiki>{{MONTHDAYS|2000|1}}</nowiki></tt> returns {{MONTHDAYS|2000|1}}
: <tt><nowiki>{{MONTHDAYS|2000|2}}</nowiki></tt> returns {{MONTHDAYS|2000|2}}
: <tt><nowiki>{{MONTHDAYS|2000|3}}</nowiki></tt> returns {{MONTHDAYS|2000|3}}
: <tt><nowiki>{{MONTHDAYS|2000|4}}</nowiki></tt> returns {{MONTHDAYS|2000|4}}
: <tt><nowiki>{{MONTHDAYS|2000|5}}</nowiki></tt> returns {{MONTHDAYS|2000|5}}
: <tt><nowiki>{{MONTHDAYS|2000|6}}</nowiki></tt> returns {{MONTHDAYS|2000|6}}
: <tt><nowiki>{{MONTHDAYS|2000|7}}</nowiki></tt> returns {{MONTHDAYS|2000|7}}
: <tt><nowiki>{{MONTHDAYS|2000|8}}</nowiki></tt> returns {{MONTHDAYS|2000|8}}
: <tt><nowiki>{{MONTHDAYS|2000|9}}</nowiki></tt> returns {{MONTHDAYS|2000|9}}
: <tt><nowiki>{{MONTHDAYS|2000|10}}</nowiki></tt> returns {{MONTHDAYS|2000|10}}
: <tt><nowiki>{{MONTHDAYS|2000|11}}</nowiki></tt> returns {{MONTHDAYS|2000|11}}
: <tt><nowiki>{{MONTHDAYS|2000|12}}</nowiki></tt> returns {{MONTHDAYS|2000|12}}
=== Examples for all months of a non-leap year ===
: <tt><nowiki>{{MONTHDAYS|2001|1}}</nowiki></tt> returns {{MONTHDAYS|2001|1}}
: <tt><nowiki>{{MONTHDAYS|2001|2}}</nowiki></tt> returns {{MONTHDAYS|2001|2}}
: <tt><nowiki>{{MONTHDAYS|2001|3}}</nowiki></tt> returns {{MONTHDAYS|2001|3}}
: <tt><nowiki>{{MONTHDAYS|2001|4}}</nowiki></tt> returns {{MONTHDAYS|2001|4}}
: <tt><nowiki>{{MONTHDAYS|2001|5}}</nowiki></tt> returns {{MONTHDAYS|2001|5}}
: <tt><nowiki>{{MONTHDAYS|2001|6}}</nowiki></tt> returns {{MONTHDAYS|2001|6}}
: <tt><nowiki>{{MONTHDAYS|2001|7}}</nowiki></tt> returns {{MONTHDAYS|2001|7}}
: <tt><nowiki>{{MONTHDAYS|2001|8}}</nowiki></tt> returns {{MONTHDAYS|2001|8}}
: <tt><nowiki>{{MONTHDAYS|2001|9}}</nowiki></tt> returns {{MONTHDAYS|2001|9}}
: <tt><nowiki>{{MONTHDAYS|2001|10}}</nowiki></tt> returns {{MONTHDAYS|2001|10}}
: <tt><nowiki>{{MONTHDAYS|2001|11}}</nowiki></tt> returns {{MONTHDAYS|2001|11}}
: <tt><nowiki>{{MONTHDAYS|2001|12}}</nowiki></tt> returns {{MONTHDAYS|2001|12}}
=== Examples for the February month on some near years ===
: <tt><nowiki>{{MONTHDAYS|1901|2}}</nowiki></tt> returns {{MONTHDAYS|1901|2}}
: <tt><nowiki>{{MONTHDAYS|1904|2}}</nowiki></tt> returns {{MONTHDAYS|1904|2}}
: <tt><nowiki>{{MONTHDAYS|1992|2}}</nowiki></tt> returns {{MONTHDAYS|1992|2}}
: <tt><nowiki>{{MONTHDAYS|1996|2}}</nowiki></tt> returns {{MONTHDAYS|1996|2}}
: <tt><nowiki>{{MONTHDAYS|1999|2}}</nowiki></tt> returns {{MONTHDAYS|1999|2}}
: <tt><nowiki>{{MONTHDAYS|2000|2}}</nowiki></tt> returns {{MONTHDAYS|2000|2}}
: <tt><nowiki>{{MONTHDAYS|2001|2}}</nowiki></tt> returns {{MONTHDAYS|2001|2}}
: <tt><nowiki>{{MONTHDAYS|2002|2}}</nowiki></tt> returns {{MONTHDAYS|2002|2}}
: <tt><nowiki>{{MONTHDAYS|2003|2}}</nowiki></tt> returns {{MONTHDAYS|2003|2}}
: <tt><nowiki>{{MONTHDAYS|2004|2}}</nowiki></tt> returns {{MONTHDAYS|2004|2}}
: <tt><nowiki>{{MONTHDAYS|2005|2}}</nowiki></tt> returns {{MONTHDAYS|2005|2}}
: <tt><nowiki>{{MONTHDAYS|2006|2}}</nowiki></tt> returns {{MONTHDAYS|2006|2}}
: <tt><nowiki>{{MONTHDAYS|2007|2}}</nowiki></tt> returns {{MONTHDAYS|2007|2}}
: <tt><nowiki>{{MONTHDAYS|2008|2}}</nowiki></tt> returns {{MONTHDAYS|2008|2}}
: <tt><nowiki>{{MONTHDAYS|2012|2}}</nowiki></tt> returns {{MONTHDAYS|2012|2}}
: <tt><nowiki>{{MONTHDAYS|2099|2}}</nowiki></tt> returns {{MONTHDAYS|2099|2}}
=== Examples for the February month on some secular years ===
: <tt><nowiki>{{MONTHDAYS|1600|2}}</nowiki></tt> returns {{MONTHDAYS|1600|2}}
: <tt><nowiki>{{MONTHDAYS|1700|2}}</nowiki></tt> returns {{MONTHDAYS|1700|2}}
: <tt><nowiki>{{MONTHDAYS|1800|2}}</nowiki></tt> returns {{MONTHDAYS|1800|2}}
: <tt><nowiki>{{MONTHDAYS|1900|2}}</nowiki></tt> returns {{MONTHDAYS|1900|2}}
: <tt><nowiki>{{MONTHDAYS|2000|2}}</nowiki></tt> returns {{MONTHDAYS|2000|2}}
: <tt><nowiki>{{MONTHDAYS|2100|2}}</nowiki></tt> returns {{MONTHDAYS|2100|2}}
: <tt><nowiki>{{MONTHDAYS|2200|2}}</nowiki></tt> returns {{MONTHDAYS|2200|2}}
: <tt><nowiki>{{MONTHDAYS|2300|2}}</nowiki></tt> returns {{MONTHDAYS|2300|2}}
: <tt><nowiki>{{MONTHDAYS|2400|2}}</nowiki></tt> returns {{MONTHDAYS|2400|2}}
=== See also ===
: [[Template:YEARCC]]
: [[Template:YEARYY]]
: [[Template:CENTURY]]
: [[Template:IsLeapYear]]
: [[Template:JULIANDAY]]
: [[Template:WEEKDAY]]
: [[Template:CURRENTMONTHDAYS]]
<includeonly>
[[Category:Date-computing templates|MONTHDAYS]]
</includeonly>