how to find month of quarter not a quarter of month [closed]

This should do the trick:

monthOfQuarter = ((month - 1) % 3) + 1;

Leave a Comment