This is a migrated thread and some comments may be shown as answers.

raddatepicker and radtimepicker

1 Answer 55 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Tash
Top achievements
Rank 1
Tash asked on 30 Apr 2012, 08:44 PM
Hi,
 I have 2 controls raddatepicker and radtimepicker. Works perfect. But now I want to get the date only from the datepicker and the time only from the timepicker in code. How do I do this?


RadDPArrivalDate.Calendar.SelectedDate.Date.ToString
RadTPArrivalTime.DateInput.Text

But for both I seem to get the whole date and time.

4/30/2012 12:00:00 AM 2012-04-30-22-15-00

I would like to get 4/30/2012 and 3:00PM which is what was entered into the control.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Tash
Top achievements
Rank 1
answered on 01 May 2012, 06:36 PM
My solution is to have date variables and then set the variable to that rad control radcontrol.Calendar.SelectedDate.Date.ToString and manipulate the .NET date object. This shouldn't need to be the case.
Tags
Calendar
Asked by
Tash
Top achievements
Rank 1
Answers by
Tash
Top achievements
Rank 1
Share this question
or