Subtracts a specified number of days from a date.
The input date.
The number of days to subtract.
A new Date with days subtracted.
subDays(new Date('2025-07-23'), 3); // → 2025-07-20 Copy
subDays(new Date('2025-07-23'), 3); // → 2025-07-20
Subtracts a specified number of days from a date.