Hi,
I need to build a datetime object out of 3 drop down lists. I know I can use DateTime.TryParse().. but I don't know what format it wants? I tried this:
showDate. = Convert.ToInt32(ddl_bday_day.SelectedValue);
showDate.Month = Convert.ToInt32(ddl_bday_month.SelectedValue);
showDate.Year = Convert.ToInt32(ddl_bday_year.SelectedValue);
But those are read only properties.
I then thried this but it choked:
string tempDate = ddl_bday_day.SelectedValue+ddl_bday_day.SelectedValue+ddl_bday_day.SelectedValue;
DateTime showDate;
DateTime.TryParse(tempDate, showDate);
Any ideas?