KaxSchedulerUtcToDisplay Method |
Converts a date time object from UTC to client date format using the
TimeZoneOffset property.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic DateTime UtcToDisplay(
DateTime utcDate
)
Public Function UtcToDisplay (
utcDate As DateTime
) As DateTime
public:
virtual DateTime UtcToDisplay(
DateTime utcDate
) sealed
abstract UtcToDisplay :
utcDate : DateTime -> DateTime
override UtcToDisplay :
utcDate : DateTime -> DateTime
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.
ExamplesAppointment appointment = KaxScheduler1.Appointments[0];
Label1.Text = KaxScheduler1.UtcToDisplay(appointment.Start).ToString()
Dim appointment As Appointment = KaxScheduler1.Appointments(0)
Label1.Text = KaxScheduler1.UtcToDisplay(appointment.Start).ToString()
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also