public static int QuarterOfYear( this DateTime dateTime )
var testDate = new DateTime(2010, 11, 18); ? testDate.QuarterOfYear(); // Result: 4
In This Article