cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Appending DateTime stamp with the filename in FileWriter snap

amit_trivedi
New Contributor

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

1 ACCEPTED SOLUTION

bojanvelevski
Valued Contributor

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

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

View solution in original post

1 REPLY 1

bojanvelevski
Valued Contributor

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

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