Create current date folder

Is this correct to create current date folder

Actually i want to move current download .xlsx file to current date folder but when i create folder this error is come

Hi @yogitagaikwad2206

Instead of Datetime.today Use Now.tostring(“yyyy-MM-dd”) for todays date in create folder.

Thanks

Hi @yogitagaikwad2206

Instead of using DateTime.Today.toString(“yyyy-MM-dd”), could you try the below one,

Now.toString("yyyy-MM-dd")

Hope it helps!!

Hi @yogitagaikwad2206

Replace your double quotes and Try this

"C:\Users\Gaurav Sawant\OneDrive\Desktop\"+DateTime.Now.ToString("yyyy-MM-dd")

Regards,

Hi @yogitagaikwad2206

"C:\Users\Gaurav Sawant\OneDrive\Desktop\"+Now.ToString("yyyy-MM-dd")

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