Skip to content

addDaysInRange Type documentation

TypeScript declaration

import { addDaysInRange } from '@siemens/element-ng/datepicker';

Calculate a new date based on the offset while considering the min and max date.

Returns: new date if the range is valid or original date

addDaysInRange(current: Date, daysOffset: number, minDate?: Date, maxDate?: Date): Date

Calculate a new date based on the offset while considering the min and max date.

Returns: new date if the range is valid or original date

Parameters


Except where otherwise noted, content on this site is licensed under MIT License.