I want to add the date of the day on the excel file name For ex : “C:\Users\” +varName+ date of today “.xslx

I want to add the date of the day on the excel file name For ex : “C:\Users\” +varName+ date of today “.xslx

@Soudios

You should do something like this :point_down:

“C:\Users\” + varName + System.DateTime.Now.ToString(“dd-MM-yyyy”) + “.xslx”

1 Like

I think it takes the minute not the month
image

1 Like

@Soudios

Sorry, “MM” must be upercase…

1 Like

Try this.

“C:\Users\” +varName+DateTime.Now.Date.ToString(“dd-MM-yyyy”)+“.xlsx”

2 Likes

thank you !!

is it possible to add the time ?

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