Skip to content

subtractDays()

Returns a new date shifted backward by the provided number of days.

Example:

ts
subtractDays(new Date('2024-03-15'), 7);

Released under the MIT License.