Skip to content

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.

Parameters

Types Documentation

WeekStart

'monday' | 'saturday' | 'sunday' | undefined
type alias
import type { WeekStart } from '@siemens/element-ng/datepicker';

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