or if faster not possible, how can i preserve excel format cell date with a merge data table.
Because when i merge source dataTable_1 (dd/MM/yyyy) with destination dataTable_2 the format in dataTable_2 become MM/dd/yyyy
And while merging make sure you have both the datatable having dates in same format and when written to excel it actually changes the format
To avoid that use a for each row activity and pass datatable dt as input
i build dataTable_2 with read range without building it maybe it is why it dont work the way a wanted .Still trying to make it work thank for the advice @Palaniyappan and @Gokul001
the issue is : i have multiple excel i extract from a website and i try to merge all this excel into one but the format date was changing after the merge MM/dd/yy.
At first i didn’t build the dataTable_2 i use read range to create it
Datetimes don’t have formats. They’re stored internally as milliseconds since Jan 1 1970. You set the format when you want to output the datetime as a string.
I try the other write range “Uipath.Excel.Activities.ExcelWriteRange” and not the “Uipath.Excel.Activities.WriteRange” and it work the way I want.
Don’t know the diffirence but it work
The difference is the Workbook activities don’t have to be inside the Excel Application Scope. This makes them faster and simpler since they don’t open the Excel file like EAS does, but it also means they’re more limited in what you can do.