raddatepicker and radtimepicker

2 posts, 0 answers
  1. Tash
    Tash avatar
    15 posts
    Member since:
    Jul 2012

    Posted 30 Apr 2012 Link to this post

    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.
  2. Tash
    Tash avatar
    15 posts
    Member since:
    Jul 2012

    Posted 01 May 2012 Link to this post

    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.
Back to Top