Convert String "dd/MM/yyyy" to String "dd.MM.yyyy"

I have a string var in dd/MM/yyyy. How to I change the format of the string to dd.MM.yyyy?

2 Likes

Hi @Cari ,

Please check this link .

1 Like

Hi

If your input is in dd/MM/yyyy then try this expression in assign activity

stroutput = Datetime.ParseExact(Strinput.ToString, “dd/MM/yyyy”, System.Globalization.CultureInfo.InvariantCulture).ToString(“dd.MM.yyyy”)

For more details pls refer the thread shared by @parvathi_ayanala

Cheers @Cari

Just replace . with / in the string. No date parsing or other conversions necessary.

1 Like

Hey @parvathi_ayanala

Please try the below,

str.Replace("/",".")

Hope this helps

Thanks
#nK

1 Like

@Cari Please check the below workflow

Example.zip (2.3 KB)

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