Returns the value of the NBElement passed in after first converting it to a DateTimeOffset.

C# | Visual Basic | Visual C++ | F# |
public static DateTimeOffset ToDateTimeOffset( NBElement value )
Public Shared Function ToDateTimeOffset ( _ value As NBElement _ ) As DateTimeOffset
public: static DateTimeOffset ToDateTimeOffset( NBElement^ value )
static member ToDateTimeOffset : value:NBElement -> DateTimeOffset

- value (NBElement)
- The element whose value is to be converted.

The current element's value converted to a DateTimeOffset data type.

This method assumes the value element will contain a broker Date, Timestamp or GmtTimestamp data type.
If this is not the case, use one of the overloads with the convertVia parameter.

Exception | Condition |
---|---|
FormatException | Thrown if the value can not be converted to a DateTimeOffset. |