Skip to content

changeDay Type documentation

TypeScript declaration

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

Update date/day of give date without changing the month. In case the day exceed the number of days in the current month the last day in month will be assigned.

Returns: the updated date object.

changeDay(date: Date, day: number): Date

Update date/day of give date without changing the month. In case the day exceed the number of days in the current month the last day in month will be assigned.

Returns: the updated date object.

Parameters

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