NBElementConvert ToDateTimeOffset Method (NBElement, NBElementDateTimeType)IBM Integration Bus
Returns the value of the NBElement passed in after first converting it to a DateTimeOffset if required using specified conversion.

Namespace: IBM.Broker.Plugin
Assembly: IBM.Broker.Plugin (in IBM.Broker.Plugin.dll) Version: 9.0.0.0
Syntax

public static DateTimeOffset ToDateTimeOffset(
	NBElement value,
	NBElementDateTimeType convertVia
)

Return Value

Type: OnlineDateTimeOffset
The current element's value converted to a DateTimeOffset data type and the specified conversion of the element.
Exceptions

ExceptionCondition
OnlineSystem FormatExceptionThrown if the value can not be converted to a DateTimeOffset using specified 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.

See Also