Template:MonthDiff: Difference between revisions

Jump to navigation Jump to search
Trying to add years to it, slowly.
mNo edit summary
(Trying to add years to it, slowly.)
Line 1: Line 1:
<includeonly>{{#ifeq:{{#expr:{{{4}}}*12+{{{5}}}+{{{6}}}/30-({{{1}}}*12+{{{2}}}+{{{3}}}/30)round0}} months|1 months|1 month|{{#expr:{{{4}}}*12+{{{5}}}+{{{6}}}/30-({{{1}}}*12+{{{2}}}+{{{3}}}/30)round0}} months}}</includeonly><noinclude>
<includeonly>{{#ifeq:{{#expr:{{{4}}}+{{{5}}}/12+{{{6}}}/(30*12)-({{{4}}}+{{{5}}}/12+{{{6}}}/(30*12))round0}} years|1 years|1 year|{{#expr:{{{4}}}*12+{{{5}}}+{{{6}}}/30-({{{1}}}*12+{{{2}}}+{{{3}}}/30)round0}} years}} {{#ifeq:{{#expr:{{{4}}}*12+{{{5}}}+{{{6}}}/30-({{{1}}}*12+{{{2}}}+{{{3}}}/30)round0}} months|1 months|1 month|{{#expr:{{{4}}}*12+{{{5}}}+{{{6}}}/30-({{{1}}}*12+{{{2}}}+{{{3}}}/30)round0}} months}}</includeonly><noinclude>
This templates allows you to (approximately) calculate the amount of months between two dates.
This templates allows you to (approximately) calculate the amount of months between two dates.


960

edits

Navigation menu