System.ObjectExtentions.ToDateTime C# (CSharp) Method

ToDateTime() public static method

Convert an object into a DateTime
public static ToDateTime ( this foo ) : System.DateTime
foo this this
return System.DateTime
        public static DateTime ToDateTime(this object foo)
        {
            if (foo.IsNull())
                return DateTime.MinValue;
            else
                return Convert.ToDateTime(foo);
        }