Date Format _001

Hello guys I have 2 column in excel, i want the same format for column i in column 2

Below are the code

a

  1. Iam reading excel (Preserve format is enabled)
  2. Creating a data table and adding each data to the datatable and finally writing it in the excel sheet

But iam not getting the same format as of first format

@Gokul_Murali,

You will have to use Excel Process Scope activity Format Cells

@ashokkarale

Can i use one format cell activity to change 3 column format

if yes, can you mention that also

@Gokul_Murali,

If the columns are in consecutive sequence like this

You can Format Cells using Range like this

But if they are apart from each other, you will have to use multiple Format Cells.

  1. Using read range activity store the data in a variable DT1.
  2. using For each Row in Data table = row in DT1.
  3. using Assign Activity and write the conditions-
    row(“Column2”) = DataTime.ParseExact(row(“Column2”).ToString(),“dd-MM-yyyy”,System.Globalization.CultureInfo.InvariantCulture).ToString(“yyyy-MM-dd”)

if any query you ask me .