SetDayOfWeek
methodsSets the day of a week to a date object.
Parameters:targetDateDate
dayOfWeekNumber
directionNumber
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.