SPUtility.FormatDate(SPWeb, DateTime, SPDateFormat) Method

Definition

public:
 static System::String ^ FormatDate(Microsoft::SharePoint::SPWeb ^ web, DateTime date, Microsoft::SharePoint::Utilities::SPDateFormat fmt);
public static string FormatDate (Microsoft.SharePoint.SPWeb web, DateTime date, Microsoft.SharePoint.Utilities.SPDateFormat fmt);
static member FormatDate : Microsoft.SharePoint.SPWeb * DateTime * Microsoft.SharePoint.Utilities.SPDateFormat -> string
Public Shared Function FormatDate (web As SPWeb, date As DateTime, fmt As SPDateFormat) As String

Parameters

web
SPWeb
date
DateTime

Returns

String

Applies to