7,180
edits
Changes
no edit summary
The first three parameters are the year, month name, and day number of a date which is taken as the start of a week.
The fourth parameter is a number from 1 to 7 representing the day of the week. The fourth parameter should be between 1 and 7.
==Example==
{{Days after date|2400|February|28|5}}
</noinclude><includeonly><!-- The calculation is ((day of month + day of week - 2) mod (days in month)) + 1-->{{#expr:(({{{3}}} + {{{4}}} - 2) mod (<!---->{{#switch:Days in month|{{{2}}}|April |June |September |November=30|February=({{#ifexpr:((({{{1}}} mod 4) > 0) or ((({{{1}}} mod 100) = 0) and (({{{1}}} mod 400) > 0)))|28|29}})|31}})) + 1}}</includeonly>