Refactor date and time fields to use converter classes.