Returns the value of the NBElement passed in after first converting it to a Nullable<DateTime> if required using specified format.
Namespace: IBM.Broker.PluginAssembly: IBM.Broker.Plugin (in IBM.Broker.Plugin.dll) Version: 9.0.0.0
public static Nullable<DateTime> ToNullableDateTime(
NBElement value,
string format
)
public static Nullable<DateTime> ToNullableDateTime(
NBElement value,
string format
)
Public Shared Function ToNullableDateTime (
value As NBElement,
format As String
) As Nullable(Of DateTime)
Public Shared Function ToNullableDateTime (
value As NBElement,
format As String
) As Nullable(Of DateTime)
public:
static Nullable<DateTime> ToNullableDateTime(
NBElement^ value,
String^ format
)
public:
static Nullable<DateTime> ToNullableDateTime(
NBElement^ value,
String^ format
)
static member ToNullableDateTime :
value : NBElement *
format : string -> Nullable<DateTime>
static member ToNullableDateTime :
value : NBElement *
format : string -> Nullable<DateTime>
Return Value
Type:
Nullable
DateTime The current element's value converted to a
Nullable<DateTime> data type using the specified format.
Exception | Condition |
---|
System FormatException | Thrown if the value can not be converted to a Nullable<DateTime> with the given format. |
The format string uses the syntax documented in the Information Center in the topic "Formatting and parsing dateTimes as strings (ak05616)".