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
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
Instead of Datetime.today Use Now.tostring(“yyyy-MM-dd”) for todays date in create folder.
Thanks
Instead of using DateTime.Today.toString(“yyyy-MM-dd”), could you try the below one,
Now.toString("yyyy-MM-dd")
Hope it helps!!
Replace your double quotes and Try this
"C:\Users\Gaurav Sawant\OneDrive\Desktop\"+DateTime.Now.ToString("yyyy-MM-dd")
Regards,
"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.