Forum Discussion

amit_trivedi's avatar
amit_trivedi
New Contributor
4 years ago
Solved

Appending DateTime stamp with the filename in FileWriter snap

I am reading file and finally wanted to load data to new file with file name contains name of output file along with the datetime stamp. Using below expression to achieve the same but getting error...
  • bojanvelevski's avatar
    4 years ago

    Your expression is lacking quotes for the string values. It should look something like this:

    "empfile_" + Date.now().toLocaleDateTimeString() + ".csv"