DayOfWeek
methodsReturns a new date object that is set with a particular day of the week.
Parameters:targetDateDate
dayOfWeekNumber
directionNumber
Returns:Date
The date to set the day of the week to.
The day of the week to be set.
The direction that determines the day of the week to be set.
One (1) indicates the day after the current one (default value). Minus one (-1) indicates the day before the current one.
A new date object that is set with a particular day of the week.