Save an excel file name as date

Hello,

I’m trying to save a file name a date, i did this :

“Data”+fileName+".xlsx" which fileName has DateTime.Now.ToString(“dd/MM/yyyy”) as value

the problem is it creates a folder iside a folder than the xlsx file…

3 Likes

Try to mention like this @mz3bel
"Data"+"_"+Now.ToString(“dd_MM_yyyy”)+".xlsx"

2 Likes

Oh, i see windows don’t that we use “/”, got it now, that’s why it’s creates folder inside… etc

kindly come again once please
i didnt get that
Cheers @mz3bel

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