Difference between revisions of "Template:PrettyDate"
From DAS Wiki
Line 7: | Line 7: | ||
|{{#ifeq:{{{precision}}}|2 | |{{#ifeq:{{{precision}}}|2 | ||
|{{#time:F Y|{{{value}}}}} <!--precision of 2 means Month and Year --> | |{{#time:F Y|{{{value}}}}} <!--precision of 2 means Month and Year --> | ||
− | |{{#time:F j, Y|{{{value}}}}} <!-- | + | |{{#time:F j, Y|{{{value}}}}} <!-- else full date --> |
}}<!--end of ifeq--> | }}<!--end of ifeq--> | ||
}}<!--end of ifeq--> | }}<!--end of ifeq--> | ||
</includeonly> | </includeonly> |
Revision as of 23:38, May 12, 2021
This is the PrettyDate template. It converts various date records from a 2021-2-1 format to a February 1, 2021 format.