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 = SomeFunction(jan 3, 2010);
would set lastDayOfLastQuarter = Dec 31, 2009
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 = SomeFunction(jan 3, 2010);
would set lastDayOfLastQuarter = Dec 31, 2009
You can use a simple switch statement to check which quarter the given date falls and return the last day of that quarter.