What would be the easiest way for me to assign my quarter end month based upon the month im in?
Is there something i can use like modulo? I want the simplest case and least amount of lines of code
My quarter ends months are months 3,6,9 and 12.
I want to avoid doing a logic like this:
if (1 <= mymonth && mymonth <= 3)
mymonth = new DateTime(DateTime.Now.Year, 3, 15);
else if (4 <= mymonth && mymonth <= 6)
mymonth = new DateTime(DateTime.Now.Year, 6, 15);
else if (7 <= mymonth && mymonth <= 9)
mymonth = new DateTime(DateTime.Now.Year, 9, 15);
else
mymonth = new DateTime(DateTime.Now.Year, 12, 15);