Date format changing issue_021

Hello guys
Iam reading an excel contains date

MicrosoftTeams-image (27)

so while RPA run the format got changed, i used preserved format in the read range activity as well but not working.

MicrosoftTeams-image (28)

does anyone have any idea.

Can you please try the Modern Read Range Activity and set Read Formatting to Display Value ?

Hi,

Can you try the following expression?

CDate(Row("ServiceDate")).ToString("dd/MM/yyyy")

Regards,

@Yoichi
This expression only valid for the format that is mentioned in the expression right.

but sometime it will contain only numbers as i showed in the picture.

How about the following expression?

if (Double.TryParse(Row("ServiceDate").ToString,New Double),DateTime.FromOADate(CDbl(Row("ServiceDate").ToString)).ToString("dd/MM/yyyy"),CDate(Row("ServiceDate")).ToString("dd/MM/yyyy"))

Regards,

its not working

Hi,

Is there any error message?

Regards,

its not showing any error

Hi,

If possible can you share your worksheet? It’s no problem dummy data if we can reproduce the matter.

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.