Convert date select into a view