How to properly convert Date from excel to String?

Hi

May be let’s go one by one

Here the format is changing so as the column format in excel
That specific excel column has a different format
I would suggest to make it as TEXT so that we won’t face this format change issue

And for this

If it is Text format in excel then this issue won’t come
As it is of different format it’s getting changed

In that case either we choose PRESERVE FORMAT in READ RANGE activity to get the formar as it is

Or

If it’s not working then once after getting the output like this 44483

Then use a Assign activity like this to get the value you want

Stroutput = DateTime.FromOADate(Convert.ToDouble(row(“yourcolumnname”).ToString)).ToString(“dd/MM/yyyy”)

This will give as the datetime in string format
You can change format you want

Cheers @bp777

1 Like