NullableTypes Class Library

NullConvert.From Method (NullableDateTime, DateTime)

Converts the specified NullableDateTime value to an equivalent DateTime value using a conventional DateTime value to represent the Null value.

[Visual Basic]
Overloads Public Shared Function From( _
   ByVal x As NullableDateTime, _
   ByVal conventionalNullValue As Date _
) As Date
public static DateTime From(
   NullableDateTime x,
   DateTime conventionalNullValue


The NullableDateTime value to convert.
The DateTime value that conventionally represent the null value.

Return Value

conventionalNullValue if x is Null otherwise the Value of x.

See Also

NullConvert Class | NullableTypes.HelperFunctions Namespace | NullConvert.From Overload List