|
-
Nov 13th, 2005, 09:05 PM
#1
Thread Starter
Junior Member
Re: String was not recognized as a valid DateTime
I tried this code:-
Dim myDate As DateTime = DateTime.ParseExact(CType(r.FindControl("txtEvDate"), TextBox).Text(), "dd/MM/yyyy HH:mm", New DateTimeFormatInfo)
CType(r.FindControl("calDate"), System.Web.UI.WebControls.Calendar).SelectedDate = myDate.ToShortDateString
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|