I am trying to use a replace function to rename a file with yesterday’s date. I get an error stating “Compiler error(s) encountered processing expression. Identifier expected”. Here is my expression
file.Replace(“U:\clients\097700 ZZ KDW\0054 Practice M\DocketNavigatorReports\NEW CASE EREPORT - UIPath Report.xlsx”,“DocketNavigatorReport”+ datetime.now.AddDays(-1).ToString.(“MM-dd-yyyy”)+".xlsx")
Where did I go wrong? Thank you in advance for any help!