Export (0) Print
Expand All
Expand Minimize

SPUtility.GetExampleDateFormat method

Returns an example of the format that is used for dates in the specified site.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static string GetExampleDateFormat(
	SPWeb web,
	string stYearLabel,
	string stMonthLabel,
	string stDayLabel
)

Parameters

web
Type: Microsoft.SharePoint.SPWeb

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

stYearLabel
Type: System.String

A string that contains a number representing a sample year.

stMonthLabel
Type: System.String

A string that contains a number representing a sample month.

stDayLabel
Type: System.String

A string that contains a number representing a sample day.

Return value

Type: System.String
A string that represents the date format that is used in the site.
Show:
© 2014 Microsoft