Click or drag to resize
IDateTimePickerSettingsProviderGetDateTimePickerSettings Method
Get dictionary containing all culture dependent settings needed by cmsdatepicker component, as well as timezone dependent labels.

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 9.0.0
Syntax
C#
Object GetDateTimePickerSettings(
	CultureInfo culture,
	SiteInfo currentSite,
	DateTime currentDateTime
)

Parameters

culture
Type: System.GlobalizationCultureInfo
Culture for which the settings will be evaluated
currentSite
Type: CMS.SiteProviderSiteInfo
Reference to the executing site. This information is needed, because current time for the datepicker is retrieved based on the site time zone
currentDateTime
Type: SystemDateTime
Current date time for the site. Should be already shifted by timezone, if necessary

Return Value

Type: Object
Settings object suitable for serialization
See Also