System.ObjectExtentions.ToDateTime C# (CSharp) 메소드

ToDateTime() 공개 정적인 메소드

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