Click or drag to resize
KaxSchedulerUtcToDisplay Method
Converts a date time object from UTC to client date format using the TimeZoneOffset property.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public DateTime UtcToDisplay(
	DateTime utcDate
)

Parameters

utcDate
Type: SystemDateTime
The date to convert. Must be in UTC format.

Return Value

Type: DateTime
The date in client format which corresponds to the supplied UTC date
Remarks
KaxScheduler always stores dates in UTC format to allow support for multiple time zones. The UtcToDisplay method must be used when a date (e.g. Appointment.Start) should be presented to the client in some way - e.g. displayed in a label.
Examples
Appointment appointment = KaxScheduler1.Appointments[0];
Label1.Text = KaxScheduler1.UtcToDisplay(appointment.Start).ToString()
See Also