I’m in the process of building a bot and I am writing a data table to a csv file but I want to the file name to be saved dynamically as yesterday’s date.
So for example if I ran the bot today the file name should be “1-4-22”. I used the assign and write CSV function as you will se below but currently it’s producing a file name not in a date format. When I ran it yesterday the result was a file name of 03-54-22.
I’ve created a string variable for fileName and my function within the assign is - now.AddDays(-1).ToString(“dd-m-yy”)