Template:MonthDiff

Revision as of 13:17, 6 June 2020 by Pholin (talk | contribs) (Created page with "<includeonly>{{#expr:{{{4}}}*12+{{{5}}}+{{{6}}}/30-({{{1}}}*12+{{{2}}}+{{{3}}}/30)round0}} months</includeonly><noinclude> This templates allows you to (approximately) calcula...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This templates allows you to (approximately) calculate the amount of months between two dates.

For example, {{MonthDiff|2397|5|18|2397|6|6}} produces 1 months.

If you want to use the current date, use {{CurrentStarYear}} to get the current staryear. Use {{CURRENTMONTH}} to produce the current month, and {{CURRENTDAY2}} for the day of the month.

For example, {{MonthDiff|2395|9|5|{{CurrentStarYear}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}}} produces 75 months.

NOTE: This does not error check at all.