Fixed the sql date  field