diff --git a/src/components/SearchForm.jsx b/src/components/SearchForm.jsx index 6cf8b6e..a85b64a 100644 --- a/src/components/SearchForm.jsx +++ b/src/components/SearchForm.jsx @@ -39,7 +39,7 @@ const SearchForm = ({ initialValue, onSubmit, onReset, onMounted, confirmText, f referenceNo: { key: "referenceNo", transform: value => value || "" }, dates: [ { key: "startdate", transform: arrVal => (arrVal ? arrVal[0].format(DATE_FORMAT) : "") }, - { key: "enddate", transform: arrVal => (arrVal ? arrVal[1].format(DATE_FORMAT) : "") }, + { key: "enddate", transform: arrVal => (arrVal ? arrVal[1].endOf('month').format(SMALL_DATETIME_FORMAT) : "") }, { key: "starttime", transform: arrVal => (arrVal ? arrVal[0].format(DATE_FORMAT) : "") }, { key: "endtime", transform: arrVal => (arrVal ? arrVal[1].format(SMALL_DATETIME_FORMAT) : "") }, ],