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
- Context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
- web
Type: Microsoft.SharePoint.Client.Web
- datetime
Type: System.DateTime
- format
Type: Microsoft.SharePoint.Client.Utilities.DateTimeFormat
Return Value
Type: Microsoft.SharePoint.Client.ClientResult<String>
ReturnsClientResult<T>