# Databázová chyba "Unable to convert MySQL date/time to System.DateTime"

[![question_mark_1.png](https://doc.eainfoport.cz/uploads/images/gallery/2022-03/scaled-1680-/question-mark-1.png)](https://doc.eainfoport.cz/uploads/images/gallery/2022-03/question-mark-1.png)

### Otázka

Co dělat, když se objeví chyba ***Unable to convert MySQL date/time to System.DateTime, set AllowZeroDateTime=True or ConvertZeroDateTime=True in the connection string. See [https://mysqlconnector.net/connection-options/](https://mysqlconnector.net/connection-options/)*** ?

- - - - - -

### Odpověď

Pokud se objeví tato chyba, přidejte na konec connection stringu ***ConvertZeroDateTime=True;***.