If i understood you correctly, you need to convert the datetime varaiable and filter datatable
You can use Filter Datatable for deleting the range and assign new datatable
You can refer below post
Tutorial : Another way to check the string is present in Excel or Not
Hope these may helps you
Thanks