MarkLogic XCC/.Net Library |

# ValueFactory.NewXSTime Method

A convenience method to construct an XSTime value.

[Visual Basic]
Public Shared Function NewXSTime( _
ByVal val As String, _
ByVal timeZone As TimeZone, _
ByVal locale As CultureInfo _
) As XSTime
[C#]
public static XSTime NewXSTime(
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 XSDate.

#### See Also

ValueFactory Class | Marklogic.Xcc Namespace