Returns the value of the NBElement passed in after first converting it to a Nullable<DateTime> if required using specified format.


The current element's value converted to a Nullable<DateTime> data type using the specified format.

The format string uses the syntax documented in the Infocenter in the topic "Formatting and parsing dateTimes as strings (ak05616)".

Exception | Condition |
---|---|
FormatException | Thrown if the value can not be converted to a Nullable<DateTime> with the given format. |