Saltar al contenido principal

Function: useAddDays()

useAddDays(date, days): string

Defined in: src/core/services/dates.service.ts:132

Adds a number of days to a date.

Parameters

date

string | PlainDate

Base date (ISO string or PlainDate).

days

number

Number of days to add (can be negative).

Returns

string

The resulting date as an ISO string.

Example

useAddDays("2024-01-01", 10); // "2024-01-11"