get datepicker string