Filter or row group by last 1 or 4 or 8 or 24hours
Filter or row group by last 1 or 4 or 8 or 24hours

Hi,
I am new to datatable and I tried to research on this problem but I couldn't find anything useful.
Problem is I have one column with datetime data (2022-05-05 11:47:05 AM) with this format. The ask is, filter or group the rows by last 1hour or 4hour or 8 or 24 hour. How can I do that?
testcase link : http://live.datatables.net/zaxerajo/1/edit
This discussion has been closed.
Replies
I added "$.fn.dataTable.ext.search.push" and return "true" all the time. Just put your logic in and return "false" whenever your filter condition is not met.
http://live.datatables.net/letehabi/1/edit