display correct datepicker