MySQL: Preventing "Unable to convert MySQL date/time value to System.DateTime" (Invalid Date Data).


/ Published in: ASP
Save to your folder(s)

Changing the connection string in the web.config to allow zero date and converting it prevents this error.


Copy this code and paste it in your HTML
  1. Allow Zero Datetime=True;Convert Zero Datetime=true;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.