다음을 통해 공유


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