Skip to content

UseAddDays

katanakit-js / useAddDays

function useAddDays(date, days): string;

Defined in: core/services/dates.service.ts:638

Adds a number of days to a date.

Parameter Type Description
date string | PlainDate Base date (ISO string or PlainDate).
days number Number of days to add (can be negative).

string

The resulting date as an ISO string.

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