Update date and datetime fields