Refacto date picker