Working with dates can be a bit tricky because of formatting.
One simple solution would be to create a helper column with the date number.
Copy the date to another column and then format it: âFormat Cells: => Generalâ. You will se a number.
First use a âRead Rangeâ activity to load your data table
Use this number to sort your data using the âDataTable Sortâ Activity
Hi @a.calabro, I would suggest the following steps:
read range activity to load the excel-file to a datatable
now it depends on the exact format of the date in the datatable. If it is already a datetime datatype, you can use filter and sort activities for your datatable.
If the cells are in another format you should use parse or parseexact to convert it to a datetime datatype. a new column in your datatable will be usefull. I used this post to help me with converting string to date: Guidance on String/DateTime Conversion and String Manipulation - #4 by ClaytonM
Please check my attached workflow, you can convert the date to number using vb
CInt(MyDate.ToOADate), in a new column in the data table. You use this formula to convert your query date and use an âFilter DataTable activityâ
Please have a look at my workflow