1jaws
asked on
String was not recognized as a valid DateTime.
(ddYear.SelectedItem.Text + ddMonth.SelectedItem.Text + ddDay.SelectedItem.Text)
on my function I referenced as this
 public static int CreateNewUser( string DOB)
newUser.DOB = DateTime.Parse(DOB);
giving me error saying String was not recognized as a valid DateTime.
on my function I referenced as this
 public static int CreateNewUser( string DOB)
newUser.DOB = DateTime.Parse(DOB);
giving me error saying String was not recognized as a valid DateTime.
Please provide the value of DOB on the above example.
ASKER
19730130
ASKER
i added this to code (ddYear.SelectedItem.Text + "-" + ddMonth.SelectedItem.Text + "-" + ddDay.SelectedItem.Text)
and now, sometimes I get that error , sometimes it goes thru ok.. Weird.
and now, sometimes I get that error , sometimes it goes thru ok.. Weird.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sorry it was my fault, my validation was not working.. thanks for your effort.