Share via


JsonUtility.DeserializeDateTime method

Converts a serialized date and time to a System.DateTime object, or null if a valid conversion cannot be made.

Namespace:  Microsoft.SharePoint.JsonUtilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function DeserializeDateTime ( _
    serializedDate As String _
) As Nullable(Of DateTime)
'Usage
Dim serializedDate As String
Dim returnValue As Nullable(Of DateTime)

returnValue = JsonUtility.DeserializeDateTime(serializedDate)
public static Nullable<DateTime> DeserializeDateTime(
    string serializedDate
)

Parameters

  • serializedDate
    Type: System.String

    The serialized date and time.

Return value

Type: System.Nullable<DateTime>
A Nullable<T> with the System.DateTime or null.

See also

Reference

JsonUtility class

JsonUtility members

Microsoft.SharePoint.JsonUtilities namespace