Error renaming date

I’m trying to rename several “PDF” in a folder, if I use a fixed value it works (EJ “SIGNED”), but if I want to rename them with the date it gives me an error.
I put a capture.

DATE: DateTime.Now.ToShortDateString


I guess vStrFecha holds some special characters like colon “:”. Because of that it’s giving error.

First print the vStrFecha variable value and check it once. If it contains any special characters then remove it and then try it.

Thanks to , the problem was that it showed me the date with “/” and interpreted it as a path, I changed it to “_” and it works.
Date = DateTime.Now.ToString(“dd_MM_yyyy”)

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