Function lastWeekDayOfMonth

  • Returns the last instance of the given weekday in the given month

    Parameters

    • year: number

      The year

    • month: number

      the month 1-12

    • weekDay: WeekDay

      the desired week day 0-6

    Returns number

    the last occurrence of the week day in the month

    Throws

    timezonecomplete.Argument.Year for invalid year (non-integer)

    Throws

    timezonecomplete.Argument.Month for invalid month

    Throws

    timezonecomplete.Argument.WeekDay for invalid week day

Generated using TypeDoc