Template:Date from ordinal/doc

From MattWiki
Jump to navigation Jump to search

This template returns the date (month name and day of month) from a day number in a year.

{{Date from ordinal|day of year}}
{{Date from ordinal|day of year|year}}
{{Date from ordinal|day of year|leapyear=isleap}}
  • The year parameter is optional. If specified the date serial is handled for that specific year (leapyear is then ignored).
  • The leapyear parameter (optional, default 0 unless you specify year) is non-zero if you're working in a leap year.