Aspectacular.DateTimeExtensions.ToSortableIntDate C# (CSharp) Method

ToSortableIntDate() public static method

Converts date part of the date time to integer in the YYYYMMDD format.
public static ToSortableIntDate ( this dt ) : int
dt this
return int
        public static int ToSortableIntDate(this DateTime dt)
        {
            int retVal = (dt.Year*100 + dt.Month)*100 + dt.Day;
            return retVal;
        }