Is there a C# function which will give me the last day of the most recently finished Quarter given a date?
For example,
var lastDayOfLastQuarter = So
You can use a simple switch statement to check which quarter the given date falls and return the last day of that quarter.