Datetime convert fixed.

The former raised ValueError for strings like '2009-05-02 00:00'.
I faced this bug by switching from pyodbc.