MarkLogic XCC/.Net Library

ValueFactory.NewXSDateTime Method 

A convenience method to construct an XSDateTime value.

[Visual Basic]
Public Shared Function NewXSDateTime( _
   ByVal val As String, _
   ByVal timeZone As TimeZone, _
   ByVal locale As CultureInfo _
) As XSDateTime
[C#]
public static XSDateTime NewXSDateTime(
   string val,
   TimeZone timeZone,
   CultureInfo locale
);

Parameters

val
A String representation of the datetime
timeZone
A TimeZone object to apply to value,
locale
A CultureInfo object to apply to the value,

Return Value

An instance of XSDateTime.

See Also

ValueFactory Class | Marklogic.Xcc Namespace