Add days to date

Hello dear friends. I have the following problem:

I need to perform a data loop like this:

06/26/2023, 06/27/2023, 06/28/2023…

and so on.

I enter this site

(This one)

But every time I enter the site and download the file I must add a day. 25 times.

we can parse the string into a datetime and adddays like
grafik

so this can be combined with a for each loop / repeat number of times activity

Also have a look here:

1 Like

Hi @gustavo.souza,

Apologies, I haven’t used StudioX, however I can think of a way on Studio which may work for StudioX too.

You can get a Repeat Number of Times activity, and set this to 25. Then get a Modify Date activity, and on the modification, set “Add/Subtract Time Period” to add your days. You could use the CurrentItem in your Repeat Number of Times which will add 1, 2, 3 etc.

I hope this helps, and apologies again if this doesn’t work in StudioX.

1 Like

i used

DateTime.Now.AddDays(1).ToString

but it always returns me the same date every time

yes because it is not dynamized

DateTime.Now.AddDays(CurrentItem).ToString will be dynamic

1 Like

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