Fixed DATE and TIMESTAMP sql formats.