Agenda - v6.0.0
    Preparing search index...

    Function applySkipDays

    • Applies skip days constraint to a date, moving forward to the next valid day. Preserves the time of day from the original date.

      Parameters

      • date: Date

        The original date

      • OptionalskipDays: number[]

        Array of days to skip (0 = Sunday, 1 = Monday, ..., 6 = Saturday)

      • Optionaltimezone: string

        Optional timezone

      Returns Date | null

      The adjusted date on a valid day, or null if no valid day found