codetrix - v1.5.0
    Preparing search index...

    Function daysBetween

    • Calculates the number of full days between two dates.

      Parameters

      • start: Date

        The start date.

      • end: Date

        The end date.

      Returns number

      Number of days between the two dates.

      daysBetween(new Date('2025-07-01'), new Date('2025-07-10')); // → 9