Dates.Recurring
Dates.Recurring copied to clipboard
Last Working Day of Month
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);