Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetExampleDateFormat method
Collapse the table of content
Expand the table of content

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:
© 2015 Microsoft