fixing datepicker: it was not working with join(',')