EAPConvertToDateTime Method (Object, DateTime) |
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 DateTime ToDateTime(
Object value,
DateTime defaultValue
)
Public Shared Function ToDateTime (
value As Object,
defaultValue As DateTime
) As DateTime
Parameters
- value
- Type: SystemObject
The value to convert. - defaultValue
- Type: SystemDateTime
The value to return if the object is null or DBNull.
Return Value
Type:
DateTimeThe converted object as a DateTime.
See Also