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.
Please help.

image

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

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

2 Likes