New to Kendo UI for Angular? Start a free 30-day trial
firstDayInWeek
A function which returns the first date of the current week.
ts
firstDayInWeek(new Date(2016, 0, 15)); // 2016-01-10
firstDayInWeek(new Date(2016, 0, 15), Day.Monday); // 2016-01-11
Parameters
date Date
The initial date.
weekStartDay Day
The first day of the week.
Returns
Date - The first date of the current week.