SPUtility.FormatDate method
SharePoint 2013
Converts the specified date and time value to an SPDateFormat format.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- web
- Type: Microsoft.SharePoint.SPWeb
A Microsoft.SharePoint.SPWeb object that represents the site.
- date
- Type: System.DateTime
A System.DateTime object that represents the value to convert.
- fmt
- Type: Microsoft.SharePoint.Utilities.SPDateFormat
A Microsoft.SharePoint.Utilities.SPDateFormat value that specifies the new format.