[FIX]Fixed traceback for invalid syntax for date type.