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