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

Text property cannot be set. String was not recognized as a valid DateTime.

2 Answers 292 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 07 Jan 2009, 09:38 AM
hi there.

i am facing a problem while setting a time value to RadDateInput below is the code which is cousing the conversion problem.

txtSignIn.Text = "9:00 AM"

where txtSignIn is the RadDateInput Control.


thanks
nitesh monga

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 07 Jan 2009, 10:17 AM
Hi Nitesh,

RadDateInput should be used with the SelectedDate property:

ASPX

<telerik:RadDateInput ID="RadDateInput1" runat="server" DateFormat="HH:mm" />

C#

RadDateInput1.SelectedDate = DateTime.Parse("09:00 AM");


Kind regards,
Dimo
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 23 Jan 2009, 11:55 AM
worked fine :)..

thanks alot
nitesh monga
Tags
Input
Asked by
nitesh monga
Top achievements
Rank 1
Answers by
Dimo
Telerik team
nitesh monga
Top achievements
Rank 1
Share this question
or