Compartilhar via


Utility.FormatDateTime Method

Namespace:  Microsoft.SharePoint.Client.Utilities
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Shared Function FormatDateTime ( _
    Context As ClientRuntimeContext, _
    web As Web, _
    datetime As DateTime, _
    format As DateTimeFormat _
) As ClientResult(Of String)
'Usage
Dim Context As ClientRuntimeContext
Dim web As Web
Dim datetime As DateTime
Dim format As DateTimeFormat
Dim returnValue As ClientResult(Of String)

returnValue = Utility.FormatDateTime(Context, _
    web, datetime, format)
[RemoteAttribute]
public static ClientResult<string> FormatDateTime(
    ClientRuntimeContext Context,
    Web web,
    DateTime datetime,
    DateTimeFormat format
)

Parameters

Return Value

Type: Microsoft.SharePoint.Client.ClientResult<String>
ReturnsClientResult<T>

See Also

Reference

Utility Class

Utility Members

Microsoft.SharePoint.Client.Utilities Namespace