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

extracting time from raddateinput.

2 Answers 51 Views
Input
This is a migrated thread and some comments may be shown as answers.
nitesh monga
Top achievements
Rank 1
nitesh monga asked on 05 Jan 2009, 12:13 PM
hi there. i am facing a problem while reading the raddateinput value. if i set my control to accept only time from the user then i want my code should get the time as a value, but instead i get the value as "date time" "01/01/2009 11:11:11 AM" i only want the time part.

thanks
nitesh monga

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 05 Jan 2009, 12:38 PM
Hello Nitesh,

You can cast the value to Time string as follows:
RadDateInput1.SelectedDate.Value.ToShortTimeString(); 

Let me know whether this helps.
Otherwise, please provide more details about your scenario.

Kind regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
nitesh monga
Top achievements
Rank 1
answered on 05 Jan 2009, 05:35 PM
thank you very much daniel it worked ;-)...

TC
nitesh
Tags
Input
Asked by
nitesh monga
Top achievements
Rank 1
Answers by
Daniel
Telerik team
nitesh monga
Top achievements
Rank 1
Share this question
or