Template:Days in month: Difference between revisions

From OLPC
Jump to navigation Jump to search
(noinclude)
 
(..)
Line 1: Line 1:
<includeonly>{{#switch:{{MONTHNUMBER|{{{month|{{CURRENTMONTH}}}}}}}|4|6|9|11=30|2={{#ifexpr:{{IsLeapYear|{{{year|{{CURRENTYEAR}}}}}}}|29|28}}|#default=31}}</includeonly><!--
{{#switch:{{MONTHNUMBER|{{{month|{{CURRENTMONTH}}}}}}}|4|6|9|11=30|2={{#ifexpr:{{IsLeapYear|{{{year|{{CURRENTYEAR}}}}}}}|29|28}}|#default=31}}<!--


--><noinclude>
--><noinclude>
<br/><br/><br/>
Takes a month and year and returns the # of days in the month. Assumes current date if none is given.
Takes a month and year and returns the # of days in the month. Assumes current date if none is given.



Revision as of 03:08, 10 February 2008

31


Takes a month and year and returns the # of days in the month. Assumes current date if none is given.

See also template:IsLeapYear.