Analogous for datepicker