Date Variable format

Hi all,
I would like to create a variable to name a download with the current date (-3 days) in the following format: e.g. “20210409”

Can you help me with the code for the variable?
Many thanks.
Markus

image

Hi @Markus3003 ,

You can use function to generate string of current date -3 as below

Today.AddDays(-3).ToString(“yyyyMMdd”)

This is returned as “20210409”

Hope this help ! :slight_smile:

1 Like

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