Datepicker & TimePicker

2 posts, 0 answers
  1. Robin Verhulst
    Robin Verhulst avatar
    6 posts
    Member since:
    Apr 2010

    Posted 03 May 2010 Link to this post

    I want to pass a DateTime object  to a method of mine .
    now i have a datepicker and a timepicker

    How do i make the time of the returned value of datepicker into the time from timepicker.

    Currently i have this , but it doesn't work.

     DateTime? date = new DateTime(); 
                    date = rdpDate.SelectedDate; 

  2. Boyan
    Boyan avatar
    758 posts

    Posted 05 May 2010 Link to this post

    Hello Robin Verhulst,

    I can't understand exactly what are you trying to do. But as far as I understand you are trying to take the date part of your DateTime object from the DatePicker and the time part from the TimePicker. If I have understood right you need to use ViewModel. I have attached a sample application which shows how this can be done.

    If you have further questions please let me know.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top