Date in the format BASE-dd-MM-yyyy.XLS

hello friends, I need to save the date in the format
BASE-dd-MM-yyyy.XLS
I’m using
System.DateTime.Now.ToString(“dd-MM-yyyy”)
in this format it is outputting only the date
dd-MM-yyyy

image

“BASE-” + Now.ToString(“dd-MM-yyyy”) + “.XLS”

1 Like

Hi
You are giving condition for a date only
try this

"BASE-"+System.DateTime.Now.ToString(“dd-MM-yyyy”)"+.XLS"

If there is any folder path, try this

"YourPath\"+"BASE-"+System.DateTime.Now.ToString(“dd-MM-yyyy”)"+.XLS"
1 Like

Hello @pauloengenharia5

Plz check the below .

How to Modify Date in UiPath? Modify Date activity explained with demo

Thanks

1 Like

This is literally no different than what I answered, except you have an extra double quote that will cause an error. You don’t need the System.DateTime reference, you can just start with Now.ToString as I did. His problem was the filename was ending up only the date, but he also needed BASE- on the beginning and the .XLS extension added.

The folder path is supplied in the first property of the activity, as shown in his screenshot.

1 Like

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