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

SPUtility.GetSelectedDate method

Retrieves the CalendarDate parameter value from the request context.

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

public static string GetSelectedDate(
	HttpRequest request,
	SPWeb web
)

Parameters

request
Type: System.Web.HttpRequest

An object that represents the request context.

web
Type: Microsoft.SharePoint.SPWeb

An object that represents the SharePoint Foundation Web site with which the request context is associated.

Return value

Type: System.String
The CalendarDate parameter value from the request context.

The value returned is the CalendarDate parameter from the collection of form variables. If there is no CalendarDate parameter in the form collection, the method returns the CalendarDate parameter from the query string.If neither of these values exists, the method returns a null reference (Nothing in Visual Basic).

Show:
© 2015 Microsoft