fix Date Type update and query