Dear All,
I have this piece of code:-
CType(r.FindControl("calDate"), Calendar).SelectedDate = DateTime.Parse(CType(r.FindControl("txtEvDate"), TextBox).Text())
And its giving me an error:-
String was not recognized as a valid DateTime
How can I solve this?
Thanks for your help and time
Johann
I have this piece of code:-
CType(r.FindControl("calDate"), Calendar).SelectedDate = DateTime.Parse(CType(r.FindControl("txtEvDate"), TextBox).Text())
And its giving me an error:-
String was not recognized as a valid DateTime
How can I solve this?
Thanks for your help and time
Johann