Template:Countdown

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide

Documentation

This template displays the amount of days between two different dates.

Note: This template does not work across years.

Syntax

{{Countdown|year1|month1|day1|year2|month2|day2}}
Displays the difference between the two dates given.
{{Countdown|year1|month1|day1}}
Displays the difference between the given date and today.
Note: day and month parameters have to be specified in two digits, i.e. 8 becomes 08.

Examples

{{Countdown|2007|11|24}}
-13
{{Countdown|2007|11|24|2007|07|31}}
116

Known issues

  • This template does not work across year boundaries, i.e. {{Countdown|2008|01|08|2007|12|31}} returns -357