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
dt
Type: System.DateTimeThe System.DateTime object to be serialized.
Return value
Type: System.String
A String representing the serialized date and time.