Returns the last day of the week in the provided date , datetime , or datetimezone {0}. This function takes an optional Day ...

Returns the last day of the week in  the provided date, datetime, or datetimezone {0}. 
This function takes an optional Day, {1}, to set the first day of the week for this relative calculation. The default value is Day.Sunday.
      
  • {0}: A date, datetime, or datetimezone value from which the last day of the week is calculated
  • {1}: [Optional] A Day.Type value representing the first day of the week. Possible values are Day.Sunday, Day.Monday, Day.Tuesday, Day.Wednesday, Day.Thursday, Day.Friday and Day.Saturday. . The default value is Day.Sunday.