Jump to content

Template:Date from ordinal/doc

From NicheWork
Revision as of 17:48, 24 April 2020 by w>Vanisaac (top: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Syntax:
{{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.