Created dialog with datepicker