Share via


JsonUtility.SerializeDateTime method

Serializes a System.DateTime object to JavaScript Object Notation (JSON).

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

Syntax

'Declaration
Public Shared Function SerializeDateTime ( _
    dt As DateTime _
) As String
'Usage
Dim dt As DateTime
Dim returnValue As String

returnValue = JsonUtility.SerializeDateTime(dt)
public static string SerializeDateTime(
    DateTime dt
)

Parameters

Return value

Type: System.String
A String representing the serialized date and time.

See also

Reference

JsonUtility class

JsonUtility members

Microsoft.SharePoint.JsonUtilities namespace