datepicker functions as request parameter