Template:WeekDiff

From 118Wiki
Jump to navigation Jump to search

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

For example, {{WeekDiff|2397|5|18|2397|6|6}} produces 3 weeks.

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, {{WeekDiff|2395|9|5|{{CurrentStarYear}}|{{CURRENTMONTH}}|{{CURRENTDAY2}}}} produces 323 weeks.

NOTE: This does not error check at all.