Author: henpat | Posted on: 10/27/2006 10:44:55 AM | Views : 302

Hello again
I have this erro message: Conversion from string "" to type 'Date' is not valid.
I have an empty TextBox and I try to save the data in a DataBase (SQL server) of DateTime type.  When these TextBox is full with a date all is Ok, but when it's empty the error appears.
When I put the code: Convert.ToDateTime(TextBox.Text) I have the error:
Conversion from string "" to type 'Date' is not valid.
 
 
...

Go to the complete details ...