Sample.xlsx (10.1 KB)
Please help me to sort Date in ascending order in the column of ALLOTMENTDATE in the sample attached file.
Sample.xlsx (10.1 KB)
Please help me to sort Date in ascending order in the column of ALLOTMENTDATE in the sample attached file.
Hi,
Can you try SortRange activity as the following?
Sample
Sample20230928-4L.zip (18.3 KB)
Regards,
Try this Steps
Hi,
You can sort the dates in ascending order in the “ALLOTMENTDATE” column of your DataTable using the Sort
method.
dt = dt.AsEnumerable().OrderBy(Function(row) DateTime.ParseExact(row(“ALLOTMENTDATE”).ToString(), “dd-MM-yyyy”, Nothing)).CopyToDataTable()
dt=dt.AsEnumerable.OrderByAscending(Function(row) row(“ColumnName”)).CopyToDataTable
HopeItHelps
Thank you very much yoichi
Put a Dot (.) Before Copy to Data Table
Make Sure your variable is of Data Table
(From row In Dt.AsEnumerable()
Order By DateTime.ParseExact(row(“ALLOTMENTDATE”).ToString(), “MM/dd/yyyy”, Nothing) Ascending
Select row).CopyToDataTable
Please Try Assigning the Query again it works for me
you can try this xaml it will write as ascending order of dates based on the column
Xmal : - Date wise Ascending.zip (1.6 KB)
output :-
Use this link query for your output
dt = (From row In Dt.AsEnumerable()
Order By (row("ALLOTMENTDATE").ToString(), "MM/dd/yyyy", Nothing) Ascending
Select row).CopyToDataTable
assign activity like this
Note : dt variable type is System.Data.DataTable
Hi @vinitha_yachamaneni ,
Thank you very much… it works now…
@Praveen_Mudhiraj Thank you very much
Follow these steps:
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.