Export (0) Print
Expand All
Expand Minimize

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