Template:Days in month

From OLPC
Jump to navigation Jump to search

31


Takes a month and year and returns the # of days in the month. Assumes current date if none is given. Currently broken, since the switch isn't working.

month 12 year 2024
current : 12 and Template:MONTHNUMBER to avoid the 0
vanilla switch 6
isleapyear 1
ifcheck 1
leapcheck 28
switch new 31


See also Template:Age calculator and Template:IsLeapYear.