Difference between revisions of "Template:Calcdays"
Jump to navigation
Jump to search
m (Created page with "<includeonly>{{#expr: + {{GSD |month = {{{month2|{{{5|{{CURRENTMONTH}}}}}}}} |day = {{{day2|{{{6|{{CURRENTDAY}}}}}}}} ...") |
(Categorized as a date computing template.) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 9: | Line 9: | ||
|day = {{{day1|{{{3|{{CURRENTDAY}}}}}}}} | |day = {{{day1|{{{3|{{CURRENTDAY}}}}}}}} | ||
|year = {{{year1|{{{1|{{CURRENTYEAR}}}}}}}} | |year = {{{year1|{{{1|{{CURRENTYEAR}}}}}}}} | ||
}} }}</includeonly> | }} }}</includeonly><noinclude>{{usage|1=This template is used for automatically calculating the difference between two dates. It gives the difference in days. | ||
To calculate the difference between today's date and another fixed date: | |||
* '''<nowiki>{{calcdays| day1=11 | month1=12 | year1=2010}}</nowiki>''' will return the number of days between 11 December 2010 and today. | |||
To calculate the difference between two fixed dates: | |||
* '''<nowiki>{{calcdays| day1=16 | month1=7 | year1=2009 | day2=11 | month2=12 | year2=2010}}</nowiki>''' will return the number of days between 16 July 2009 and 11 December 2010.}} | |||
[[Category:CWCki templates|{{PAGENAME}}]][[Category: Date computing templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 13:16, 4 December 2010
Usage
These usage notes will not be included in articles bearing this template.
This template is used for automatically calculating the difference between two dates. It gives the difference in days.
To calculate the difference between today's date and another fixed date:
- {{calcdays| day1=11 | month1=12 | year1=2010}} will return the number of days between 11 December 2010 and today.
To calculate the difference between two fixed dates:
- {{calcdays| day1=16 | month1=7 | year1=2009 | day2=11 | month2=12 | year2=2010}} will return the number of days between 16 July 2009 and 11 December 2010.