Template:Orddate2m
This template takes a positive orddate from 1 March and returns the associated month number within the Gregorian calendar, extrapolated to month 14. Also negative orddates for february give the correct month.
"{{Orddate2m|-27}}"
gives "2" [1]"{{Orddate2m|0}}"
gives "2" [2]"{{Orddate2m|1}}"
gives "3" [3]"{{Orddate2m|31}}"
gives "3" [4]"{{Orddate2m|32}}"
gives "4" [5]"{{Orddate2m|61}}"
gives "4" [6]"{{Orddate2m|62}}"
gives "5" [7]"{{Orddate2m|92}}"
gives "5" [8]"{{Orddate2m|93}}"
gives "6" [9]"{{Orddate2m|122}}"
gives "6" [10]"{{Orddate2m|123}}"
gives "7" [11]"{{Orddate2m|153}}"
gives "7" [12]"{{Orddate2m|154}}"
gives "8" [13]"{{Orddate2m|365}}"
gives "14" [14]
Wrong value (in common year) because out of range:
This template uses a basic formula, based on the 5-month cycle 31-30-31-30-31, repeating itself some more than twice: Mar-Jul, Aug-Dec, Jan.
See also:
- Template:Weekdate2m - includes application of the basic formula of this template, extrapolated to negative orddates for Dec, Jan and Feb, with corrections for 30 and 31 Dec and 29, 30 and 31 Jan in common years, and 31 Dec and 30 and 31 Jan in leap years.
- Template:JULIANDAY.MONTH.