Difference between revisions of "Template:DateDiff"

From Wikispooks
Jump to navigation Jump to search
(create page)
 
(tidying)
 
Line 1: Line 1:
<noinclude>
+
<noinclude>[[Category:Convenience Templates]]'''This template requires a single date parameter and displays the difference in days between it and the current server time<br/>
'''This template requires a single date parameter and displays the difference in days between it and the current server time<br/>
 
 
Called as:
 
Called as:
 
<poem>
 
<poem>
 
{{{{t|DateDiff|yyyy-mm-dd}} }}
 
{{{{t|DateDiff|yyyy-mm-dd}} }}
 
</poem></noinclude><includeonly>{{#expr:( {{#time: U|now}} - {{#time: U|{{{1|}}} }} ) / ( 24 * 3600 ) round 0}}</includeonly>
 
</poem></noinclude><includeonly>{{#expr:( {{#time: U|now}} - {{#time: U|{{{1|}}} }} ) / ( 24 * 3600 ) round 0}}</includeonly>
 
[[Category:Convenience Templates]]
 

Latest revision as of 01:52, 19 October 2015

This template requires a single date parameter and displays the difference in days between it and the current server time
Called as:

{{DateDiff|yyyy-mm-dd }}