Converts the specified NullableDateTime value to an equivalent String value using a conventional String value to represent the Null value.
conventionalNullValue if x is Null otherwise the equivalent string of the Value of x formatted as specified by format.
If format is a null reference (Nothing in Visual Basic) or an empty string (""), general format specifier ("G") will be used.
The DateTimeFormatInfo for the current culture is used when applying fomatting.
Exception Type | Condition |
---|---|
FormatException |
The length of format is 1, and it is not one of the format specifier characters
defined for DateTimeFormatInfo.
-or- format does not contain a valid custom format pattern. |
NullConvert Class | NullableTypes.HelperFunctions Namespace | NullConvert.From Overload List