Template:Maintenance date/diff/doc

Usage
Given two dates, this template calculates how many days elapse from the first date to the second. If the first date is later, produces a negative integer.

Mandatory parameters and  are the two dates.

If the year components of the dates differ by more than one, the integer produced may have the wrong magnitude, but will still have the correct sign. For example, =. Since anticipated use is for scheduling short-to-medium-term maintenance tasks such as deletion of abandoned articles, intervals of more than a few weeks would seem unlikely to arise.