Hi,
I have scraped a particular table. The datatable consist of column(“Created Date”) which is something like “9/21/2020 11:55 AM” in this format.
I need to sort the datable in ascending order (created date) , for that I need to convert the "Created Date " column to Date format.
1 Like
Srini84
(Srinivas Kadamati)
October 20, 2020, 9:44am
2
Without using loop, i want the column datatype and rows for that column change to date
moenk
(Thomas Meier)
October 20, 2020, 10:16am
4
You can not change the type in a DataTable when it contains data.
@moenk then how to sort on ascending date?
moenk
(Thomas Meier)
October 20, 2020, 10:22am
6
This will be a string sort though, but might work in this case:
No,this is not working…It is taking as string,need to convert to date
ppr
(Peter Preuss)
October 20, 2020, 10:35am
8
@prateekjain1992
find starter help here:
DT_SortDate.xaml (7.0 KB)
for finding the correct format just check the content of the datatable while debugging (Excel visual value is not mandatory the same within the datatable after a read range)
[FirstAid] Datatable: Debug & Analysis invalid DateTime Strings / String to DateTime Parsing Issues - News / Tutorials - UiPath Community Forum
Demo on this format:
1 Like
system
(system)
Closed
October 23, 2020, 11:50am
13
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.