Hi,
I am building a rad grid to display all the appointments. The problem I am having right now is to display date and time of an appointment in 2 different columns. May you show me how to separate date and time from an appointment StartTime?
1 Answer, 1 is accepted
0
Nikolay Tsenkov
Telerik team
answered on 19 May 2011, 02:39 PM
Hello Hai,
The Start and End properties of the Appointment type are of DateTime type.
In order to get the date you need to simply access the Date property of the DateTime object (apt.Start.Date).
And to access the time during this date you have to get the apt.Start.TimeOfDay.