Converts an object value that is DBNull or System.DateTime to an equivalent NullableDateTime value.
Null if x is DBNull otherwise a NullableDateTime constructed from x.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | x is null. |
| InvalidCastException | x is neither DBNull or of type DateTime. |
DBNullConvert Class | NullableTypes.HelperFunctions Namespace