UNPKG

@progress/kendo-date-math

Version:

Kendo UI typescript package exporting functions for Date manipulations

15 lines (14 loc) 434 B
/** * A function that adds and subtracts days from a `Date` object. * * @param date - The initial date value. * @param offset - The number of days to add and subtract from the date. * @returns - A new `Date` instance. * * @example * ```ts-no-run * addDays(new Date(2016, 0, 1), 5); // 2016-1-6 * addDays(new Date(2016, 0, 1), -5); // 2015-12-26 * ``` */ export declare const addDays: (date: Date, offset: number) => Date;