changed datepicker date format to YYYY-MM-DD