Bootstrap table 'FilterBy' date datatype
Description
I am trying to filter bootstrap table by date. I am using tempus dominus to select date. bootstrap table data not filter. it showing "No matching records found". Even when we clear all search ,it is not loading the data.
Please help - how to fix this. attached example link.
Example(s)
https://live.bootstrap-table.com/code/JetalS/18342
It works with this workaround:
$('#BSTable').bootstrapTable('filterBy', {}, { filterAlgorithm: (row, filters) => row.DateCol.startsWith(formattedDate); })
Thak you. Will try this as well.
Have fixed the issue – it was not filtering because of date format.
Regards, Jetal
From: rogeriolaa @.> Sent: Monday, 28 July 2025 6:36 AM To: wenzhixin/bootstrap-table @.> Cc: Jetal Shah @.>; Author @.> Subject: Re: [wenzhixin/bootstrap-table] Bootstrap table 'FilterBy' date datatype (Issue #7605)
[https://avatars.githubusercontent.com/u/203429500?s=20&v=4]rogeriolaa left a comment (wenzhixin/bootstrap-table#7605)https://github.com/wenzhixin/bootstrap-table/issues/7605#issuecomment-3124712185
It works with this workaround:
$('#BSTable').bootstrapTable('filterBy', {}, { filterAlgorithm: (row, filters) => row.DateCol.startsWith(formattedDate); })
— Reply to this email directly, view it on GitHubhttps://github.com/wenzhixin/bootstrap-table/issues/7605#issuecomment-3124712185, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A2R5XAQJWTWGK3FL3ADOU2T3KUZ25AVCNFSM6AAAAABRTGBEWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCMRUG4YTEMJYGU. You are receiving this because you authored the thread.Message ID: @.@.>>