diff --git a/pandasqt/CustomDelegates.py b/pandasqt/CustomDelegates.py
index <HASH>..<HASH> 100644
--- a/pandasqt/CustomDelegates.py
+++ b/pandasqt/CustomDelegates.py
@@ -47,7 +47,7 @@ def setDelegatesFromDtype(tableView):
                 delegate = CustomDoubleSpinboxDelegate(floatInfo.min, floatInfo.max, decimals=model._float_precisions[str(columnDtype)])
                 itemDelegates[columnName] = delegate
                 tableView.setItemDelegateForColumn(i, delegate)
-            else:
+            elif columnDtype == object:
                 delegate = TextDelegate()
                 itemDelegates[columnName] = delegate
                 tableView.setItemDelegateForColumn(i, delegate)
fixed bug which overwrites default datetime delegate