Template:Date: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:in|{{#replace:{{{1}}}|-}}}}{{#switch:{{#sub:{{#var:in}}|5|2}} | <includeonly>{{#vardefine:in|{{#sub:{{#replace:{{{1}}}|-}}|0|6}}}}{{#var:in}}{{#switch:{{#sub:{{#var:in}}|5|2}} | ||
|01=January | |01=January | ||
|02=February | |02=February |
Revision as of 18:22, 23 January 2023
Usage
This template parses a date of shape yyyy-mm-dd into spoken language like 197503March 18th 1975
Parameters
The template hase one obligatory unnamed parameter:
- 1: a date of shape yyyy-mm-dd
Examples
Code | Result |
---|---|
{{date|1900-01-01}} | 190001January 1st 1900 |
{{date|2025-11-22}} | 202511January 22nd 2025 |
{{date|2019-02-31}} | 201902February 31st 2019 (rubbish in→rubbish out ;) |