Function firstWeekDayOfMonth

  • Returns the first 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

    Returns number

    the first 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