Share via


FormatDate Method

The FormatDate method of the SPUtility class converts the specified date and time value to an SPDateFormat format.

Parameters

web   A Microsoft.SharePoint.SPWeb object that represents the site.

date   A System.DateTime object that represents the value to convert.

fmt   A Microsoft.SharePoint.Utilities.SPDateFormat value that specifies the new format.

Return Value

A string that contains the reformatted date and time value.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security