Simplify Settings Dates view code