Yes probably this will cause an error.
Store only the date format in config file
DateFormat = “MM-dd-yyyy”
Or you can directly use this expression for file name without config.
Now.ToString(“MM-dd-yyyy”)
For config- if you save only dateformat in config
Now.ToString(Config(“DateFormat”).ToString)
Hope this helps ![]()