You need to sign in to do that
Don't have an account?
krios demo
How to calculate last fifth date of current month?
I have to send an email alert to the opportunity owner on the last fifth day of the current user....
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
If you are looking for formula you can use this below formula.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
This should give you the 5th day (if there is one) ...
DateTime dayInMonth = DateTime.Now; DayOfWeek dayToFind = DayOfWeek.Friday; var fifth= Enumerable.Range(1, DateTime.DaysInMonth(dayInMonth.Year, dayInMonth.Month)) .Select(day => new DateTime(dayInMonth.Year, dayInMonth.Month, day)) .Where(day => day.DayOfWeek == dayToFind) .Skip(4) .FirstOrDefault();
mybkexperience (https://www.mybkexperience.one)