When you want the Quarter Starting and Ending dates for a given date, here are simple functions to calculate.
public static DateTime QuarterEnddate(DateTime curDate, int whichQtr)
{
int tQtr = (curDate.Month - 1) / 3 + 1 + whichQtr;
return new DateTime(curDate.Year, (tQtr * 3) + 1, 1).AddDays(-1);
}
public static DateTime QuarterStartDate(DateTime curDate, int whichQtr)
{
return QuarterEnddate(curDate, whichQtr).AddDays(1).AddMonths(-3);
}
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.