EAPConvertToDateTime Method (Object, Boolean) |
Convert the object to a DateTime value handling the case when the object is null or DBNull.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static Nullable<DateTime> ToDateTime(
Object value,
bool throwOnInvalidDates
)
Public Shared Function ToDateTime (
value As Object,
throwOnInvalidDates As Boolean
) As Nullable(Of DateTime)
Parameters
- value
- Type: SystemObject
The value to convert. - throwOnInvalidDates
- Type: SystemBoolean
True to throw an exception when the date time is invalid.
Return Value
Type:
NullableDateTimeThe converted object as a DateTime or a nullable DateTime
See Also