So i got a table like below
const columns: ColumnsType<tickets> = [
{
title: 'index',
dataIndex: 'index',
key: 'index',
render: (text: string, tickets: tickets) => (dataSource.indexOf(tickets) + 1)
},
{
title: 'BlockingCode',
dataIndex: 'BlockingCode',
key: 'BlockingCode',
},
{
title: 'Ngày sử dụng',
dataIndex: 'Date',
key: 'Date',
},
const dataSource = [
{
BlockingCode: 'Mike',
Date: '22/2/2022'
},
{
BlockingCode: 'Tyler',
Date: '29/3/2022'
},
];
<Table dataSource={dataSource} columns={columns} />;
I want to filter the table so that it only dislay the data that is between a certain time, for example between 20/3/2022 and 30/3/2022. Is there a way to do it ?