datepicker & permissions