IDateTimePickerSettingsProviderGetDateTimePickerSettings Method |
Get dictionary containing all culture dependent settings needed by cmsdatepicker component, as well as timezone dependent labels.
Namespace: CMS.WebAnalyticsAssembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 10.0.0
Syntax 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:
ObjectSettings object suitable for serialization
See Also