Difference between revisions of "Template:PrettyDate"

From DAS Wiki
Line 3: Line 3:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
{{#ifeq:{{#len:{{{1}}}}}|4|
+
{{#ifeq:{{#len:{{{value}}}}}|4|
   {{#time:Y|{{{1}}}}}|
+
   {{#time:Y|{{{value}}}}}|
   {{#if:{{#pos:{{{1}}}|-}}|
+
   {{#if:{{#pos:{{{value}}}|-}}|
     {{#time:j/n/y|{{{1}}}}}|
+
     {{#time:j/n/y|{{{value}}}}}|
     {{#time:F Y|{{{1}}}}}
+
     {{#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.