Difference between revisions of "Template:PrettyDate"
From DAS Wiki
Line 1: | Line 1: | ||
− | {{#ifeq:{{#len:{{{value|}}}}}|4| | + | <noinclude> |
+ | This is the PrettyDate template. It converts various date records to the January 1, 2021 format. | ||
+ | </noinclude> | ||
+ | <includeonly>{{#ifeq:{{#len:{{{value|}}}}}|4| | ||
{{#time:Y|{{{value|}}}}}| | {{#time:Y|{{{value|}}}}}| | ||
{{#if:{{#pos:{{{value|}}}|-}}| | {{#if:{{#pos:{{{value|}}}|-}}| | ||
Line 6: | Line 9: | ||
}}<!--end of if--> | }}<!--end of if--> | ||
}}<!--end of ifeq--> | }}<!--end of ifeq--> | ||
+ | </includeonly> |
Revision as of 22:10, May 12, 2021
This is the PrettyDate template. It converts various date records to the January 1, 2021 format.