I would like a function to be added that pulls the weekending date of an entered date.
For example, the week ending date for today, 2025-06-10 would be 2025-06-14.
It could be called DateTimeWeekEnd and look like DateTimeWeekEnd("2025-06-10","Saturday")
The value entered first would be a date or field with an optional parameter to choose Saturday or Sunday for the week ending date. I would think Saturday would be the default week ending date but I am not sure.