New to Kendo UI for Angular? Start a free 30-day trial
nextDayOfWeek
A function which returns a date by a specific week name. For example, Day.Monday
.
ts
nextDayOfWeek(new Date(2016, 0, 1), Day.Wednesday); // 2016-01-06, Wednesday
Parameters
date Date
The date to calculate from.
weekDay Day
The Day
enum specifying the desired week day.
Returns
Date - A Date
instance.