Create single folder using a variable name where the variable name has slashes

I am trying to create a single folder with a date name from a variable. My current variable reads as ‘12/29/2019’. This format ends up creating three folders 12 , 29 and 2019 because the slash (“/”) is understood as a folder by UIpath. I can’t change the format of the date input because that is the format expected further along the code. I just want to create one folder - 12292019.

You can use Replace Function
say
YourDate.Replace(“/”,“”).Replace(“/”,“”).Replace(“/”,“”)

Hi,

Can you try the following?

yourVariable.Replace("/","")

Regards,

Thank you all :grinning:

1 Like

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