Module:DayCalc/doc

From electowiki

This is the documentation page for Module:DayCalc

Documentation for DayCalc[edit source]

DayCalc may evolve into many day/date functions. Right now, it has a case of the Tuesdays.

Examples:

get_next_tuesday[edit source]

  1. Returns the next Tuesday if today is not Tuesday, otherwise returns today's date.
    • wikitext: {{#invoke:DayCalc|get_next_tuesday}}
    • result: October 03, 2023
  2. Returns the next Tuesday if today is not Tuesday, otherwise returns today's date (ISO format)
    • wikitext: {{#invoke:DayCalc|get_next_tuesday|isodate=true}}
    • result: 2023-10-03

get_first_coming_tuesday_of_month[edit source]

  1. Returns the first upcoming Tuesday which is the first Tuesday of a month.
    • wikitext: {{#invoke:DayCalc|get_first_coming_tuesday_of_month}}
    • result: October 3, 2023
  2. Returns the first upcoming Tuesday which is the first Tuesday of a month (ISO format)
    • wikitext: {{#invoke:DayCalc|get_first_coming_tuesday_of_month|isodate=true}}
    • result: 2023-10-03