react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

Bootstrap table filter by Date

Open ranaraya opened this issue 3 years ago • 3 comments

I tried to apply a date filter for condition "> 21-jul-2021", but i still see the result section with date value = "21-jul-2021". Not sure, on what should i do from my end to prevent rows with 21-jul-2021.

https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=Column%20Filter&selectedStory=Date%20Filter&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panell

Please note that in my APP, am using BootstrapTable4.

ranaraya avatar Dec 29 '21 23:12 ranaraya

Additionally, "Date input field - how to setup width for date field, so that the selection is visible". In this case, i see only the first 3 characters like "07/2 followed by calendar icon/image".

ranaraya avatar Dec 29 '21 23:12 ranaraya

Did you use a raw date object per the docs? You can't just filter on formatted strings.

isherwood avatar Jan 18 '22 16:01 isherwood

When you say raw date object - are you referring to data type of the date column in question. Yes, the API returns date value as String and i'm not doing any conversion @UI. I do specify column type as "date".

ranaraya avatar Jan 19 '22 11:01 ranaraya