date type field fix