Click or drag to resize
TimeZoneUIMethods.GetDateTimeForControl Method (Control, DateTime, TimeZoneInfo)
Gets the date time value for the given control.

Namespace: CMS.Globalization.Web.UI
Assembly: CMS.Globalization.Web.UI (in CMS.Globalization.Web.UI.dll) Version: 13.0.131
Syntax
C#
public static DateTime GetDateTimeForControl(
	Control control,
	DateTime dateTime,
	out TimeZoneInfo usedTimeZone
)

Parameters

control
Type: System.Web.UI.Control
Control
dateTime
Type: System.DateTime
Date time
usedTimeZone
Type: CMS.Globalization.TimeZoneInfo
Time zone used for time conversion

Return Value

Type: DateTime
See Also