getWeekStartDate Type documentation¶
TypeScript declaration¶
import { getWeekStartDate } from '@siemens/element-ng/datepicker';Get the first date of the week based on the input date.
Returns: a new date object which is the start of the current week.
getWeekStartDate(current: Date, weekStartDay?: WeekStart = 'monday'): Date
Get the first date of the week based on the input date.
Returns: a new date object which is the start of the current week.
Types Documentation¶
import type { WeekStart } from '@siemens/element-ng/datepicker'; Except where otherwise noted, content on this site is licensed under MIT License.