codetrix - v1.5.0
    Preparing search index...

    Function addDays

    • Adds a specified number of days to a date.

      Parameters

      • date: Date

        The input date.

      • days: number

        The number of days to add.

      Returns Date

      A new Date with days added.

      addDays(new Date('2025-07-23'), 5); // → 2025-07-28