Returns the value of the NBElement passed in after first converting it to a DateTimeOffset if required using specified format and conversion.
Namespace: IBM.Broker.PluginAssembly: IBM.Broker.Plugin (in IBM.Broker.Plugin.dll) Version: 9.0.0.0
Syntax
Parameters
- value
- Type: IBM.Broker.Plugin NBElement
The element whose value is to be converted.
- format
- Type:
System String
The format specifier for the convertion.
- convertVia
- Type: IBM.Broker.Plugin NBElementDateTimeType
The type conversion qualifier for element.
Return Value
Type:
The current element's value converted to a DateTimeOffset data type using the specified format and conversion.
Exceptions
Exception | Condition |
---|---|
![]() | Thrown if the value can not be converted to a DateTimeOffset with specified format and conversion. |
Remarks
As there are multiple choices when converting from a broker type to a DateTimeOffset, this method allows you greater control over how the convertion is performed. The value is first converted to the convertVia type, and then subsequently converted to a DateTimeOffset.
The format string uses the syntax documented in the Information Center in the topic "Formatting and parsing dateTimes as strings (ak05616)".
See Also