UseAddDays
katanakit-js / useAddDays
Function: useAddDays()
Section titled “Function: useAddDays()”function useAddDays(date, days): string;Defined in: core/services/dates.service.ts:638
Adds a number of days to a date.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
date |
string | PlainDate |
Base date (ISO string or PlainDate). |
days |
number |
Number of days to add (can be negative). |
Returns
Section titled “Returns”string
The resulting date as an ISO string.
Example
Section titled “Example”useAddDays("2024-01-01", 10); // "2024-01-11"