Help: Change column Datatype

How do I change column datatype after its been created or cloned.

For example, I cloned a datatable (no data). But want to change a column datatype from string to datetime.

How to replicate the following in uipath: ClonedTable.Columns[“Post. Date”].DataType = typeof(DateTime);


1 Like

Hello @Daemo

Hope this help :slight_smile:

ClonedTable.Columns["Post. Date"].DataType = GetType(System.DateTime)



Please refer attached code.

dtClone.xaml (8.8 KB)


Hi @tomek.pawlicki
Can we do without cloning the datatable.
My requirement is there is one date value in one column… i want to compare that value with current date. But that column value is not datetime datatype. Can you please help me with That.

1 Like

Hi vvaidya,

I have a date column in excel in that i have date values i am not sure what type of datatype value is stored under date column and i want to convert all the date value into string datatype forma being the same. My date format is dd-mm-yyyy

1 Like