New to KendoReactStart a free 30-day trial

Definition

Package:@progress/kendo-date-math

Syntax:

ts
firstDayInWeek(new Date(2016, 0, 15)); // 2016-01-10
firstDayInWeek(new Date(2016, 0, 15), Day.Monday); // 2016-01-11

A function which returns the first date of the current week.

Parameters:dateDate

The initial date.

weekStartDayDay

[default: Day.Sunday] - The first day of the week.

Returns:

Date

  • The first date of the current week.
In this article
Definition
Not finding the help you need?
Contact Support