ComponentSpace SAML Class Library Reference

SAML.ToDateTime Method 

Returns the DateTime represented by the formatted date/time string.

[Visual Basic]
Public Shared Function ToDateTime( _
   ByVal dateTimeString As String _
) As Date
[C#]
public static DateTime ToDateTime(
   string dateTimeString
);

Parameters

dateTimeString
The the date/time string

Return Value

the DateTime

Remarks

The date/time string should be formatted as: yyyy-mm-ddThh:mm:ssZ.

As per the SAML specification, all date/time values should be coordinated universal time (UTC).

Exceptions

Exception TypeCondition
SAMLSerializationException Thrown when the conversion fails.

See Also

SAML Class | ComponentSpace.SAML Namespace