Utility.FormatDateTime method
Namespace: Microsoft.SharePoint.Client.Utilities
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
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)
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>