Replacing '.' with '/' in Date

Hello all I have captured date using get-text activity and it is of format, 31.03.2023. How can i change it to this format 31/03/2023?

Regards,
Hardik Durgam.

Hi @Hardik_Durgam

You can either use String.Replace(".","/")

or the following:

DateTime.ParseExact(capturedText.ToString,“dd.MM.yyyy”, Globalization.CultureInfo.InvariantCulture).ToString(“dd/MM/yyyy”)

Output:

Hope this helps,
Best Regards.

2 Likes

@arjunshenoy thanks for the solution.

Regards,
Hardik Durgam.

1 Like

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