WebSphere Message Broker™ V8.0.0.0 .NET Plugin Node API
ToDateTime Method (value, format)
NamespacesIBM.Broker.PluginNBElementConvertToDateTime(NBElement, String)
SUMMARY
Returns the value of the NBElement passed in after first converting it to a DateTime if required using specified format.
Declaration Syntax
C#Visual BasicVisual C++F#
public static DateTime ToDateTime(
	NBElement value,
	string format
)
Public Shared Function ToDateTime ( _
	value As NBElement, _
	format As String _
) As DateTime
public:
static DateTime ToDateTime(
	NBElement^ value, 
	String^ format
)
static member ToDateTime : 
        value:NBElement * 
        format:string -> DateTime 
Parameters
value (NBElement)
The element whose value is to be converted.
format (String)
The format specifier for the convertion.
Return Value
The current element's value converted to a DateTime data type using the specified format.
Remarks
The format string uses the syntax documented in the Infocenter in the topic "Formatting and parsing dateTimes as strings (ak05616)".
Exceptions
ExceptionCondition
FormatExceptionThrown if the value can not be converted to a DateTime with the given format.

Assembly: IBM.Broker.Plugin (Module: IBM.Broker.Plugin) Version: 8.0.0.0