Hi Buddy @harsh.mehta
–lets take you have these values in datatable named out_dt
–use a for each row loop and pass the above variable as input
–inside the loop use a if condition to check whether it has space or not
like this row(“yourcolumnname”).ToString.Trim.Contains(" ")
and if this condition gets passed it will go to THEN part where we can use assign activity
like this
row(“yourcolumnname”)= “26-05-1994 to”
then
use a assign activity like this in the THEN part of if condition row(“yourcolumnname”)= Split(row(“yourcolumnname”)," ")(0).ToString.Trim
where the output would be “26-05-1994”
or if the above condition fails it will go to ELSE part where we can leave it empty as we dont need to change anything as there is no space to trim
Hope this would help you
Kindly try this and let know for any queries or clarification
Cheers @harsh.mehta