Ejemplo n.º 1
0
        public DateTime DateTime_FromObj(object Object)
        {
            if (this._object.IsNull(Object)) return DateTime.MinValue;
            if (Object is DateTime) return Convert.ToDateTime(Object);

            DateTime result; // = _lamed.Types.DateTime.null_;
            try
            {
                result = Convert.ToDateTime(Object);
            }
            catch (Exception e)
            {
                var ex = new FormatException("Error! Unable to convert object to DateTime!",e);
                ex.zLogLibraryMsg();
                throw ex;
            }

            return result;
        }