Tuesday, July 12, 2011

Unable to convert MySQL date/time value to System.DateTime

Solution: Add Allow Zero to your Web.Config or App.Config
1:  <add key="connectionString" value="Database=your_db  
2:  ;Data Source=localhost;User Id=root;  
3:  Password=password;Allow Zero Datetime=True;"/>  
Source: Unable To Convert MySQL DateTime value

Cheers!

0 comments:

Post a Comment