Template:WeekDiff: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#expr:{{{4}}}*52+{{{5}}}*(4+(1/3))+{{{6}}}/7-({{{1}}}*52+{{{2}}}*(4+(1/3))+{{{3}}}/7)round0}} | <includeonly>{{#expr:{{{4}}}*52+{{{5}}}*(4+(1/3))+{{{6}}}/7-({{{1}}}*52+{{{2}}}*(4+(1/3))+{{{3}}}/7)round0 weeks}}</includeonly><noinclude> | ||
This templates allows you to (approximately) calculate the amount of weeks between two dates. | |||
< | For example, <nowiki>{{WeekDiff|2397|5|18|2398|6|6}}</nowiki> produces '''{{WeekDiff|2397|5|18|2398|6|6}}'''. | ||
'''NOTE:''' This does not error check at all.</noinclude> |
Revision as of 11:58, 6 June 2020
This templates allows you to (approximately) calculate the amount of weeks between two dates.
For example, {{WeekDiff|2397|5|18|2398|6|6}} produces Expression error: Unrecognized word "weeks"..
NOTE: This does not error check at all.