I want to add the date of the day on the excel file name For ex : “C:\Users\” +varName+ date of today “.xslx
You should do something like this
“C:\Users\” + varName + System.DateTime.Now.ToString(“dd-MM-yyyy”) + “.xslx”
1 Like
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.