Saving excel file with date

hi all,

I am trying to save a data table to an excel file with date added at the end of it. i am using the logic shown below that i got from one of the previous posts here. However, i am getting the error below while trying to accomplish this. I am trying to figure out what is the problem here but i am at a dead end. any advice is greatly appreciated.

image

Hello

Replace the "\" in the filename.

captureDate = DateTime.Now.ToString("dd-MM-yyyy")

2 Likes

thank you msan. it resolved the issue. appreciate it

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