Dates.Recurring icon indicating copy to clipboard operation
Dates.Recurring copied to clipboard

Last Working Day of Month

Open danielgradwell opened this issue 1 year ago • 0 comments

I was wondering if you have a function for finding the last working day of each month.

I was thinking that using the OnDay with a bitwise expression would work but this does not seem to be returning the correct information

nextPaymentRun = Dates.Recurring.Recurs.Starting(FirstDate) .Every(Interval) .Months() .OnOrdinalWeek(Dates.Recurring.Ordinal.FIRST) .OnDay(DayOfWeek.Monday | DayOfWeek.Tuesday | DayOfWeek.Wednesday | DayOfWeek.Thursday | DayOfWeek.Friday) .Build() .Next(NextDate);

danielgradwell avatar Apr 03 '23 14:04 danielgradwell