22-03-19 08:24 PM
23-03-19 12:40 AM
23-03-19 12:55 AM
24-03-19 11:52 PM
25-03-19 07:13 PM
I've got another variant of this that lets you pass a raw SQL query against the DataTable. If you treat it like any other SQL table, it should give you the result you need. Pretty sure the CAST() and CONVERT() statements are supported, if you need to change the datatypes. The query would look something like ""Select * where [Last Written] >= CONVERT(datetime, ""&[Filter Date]&"")""
Inputs:
Collection - Collection
Query - Text
Outputs:
Sorted Collection - Collection
DataTable temp = Collection.Clone(); DataRow[] dr = Collection.Select(Query); foreach(DataRow row in dr) { temp.ImportRow(row); } Sorted_Collection = temp;