Aspectacular.DateTimeExtensions.Quarter C# (CSharp) Method

Quarter() public static method

Returns quarter number 1..4
public static Quarter ( this dt ) : int
dt this
return int
        public static int Quarter(this DateTime dt)
        {
            return (dt.Month - 1)/3 + 1;
        }