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

4 REPLIES 4

bojanvelevski
Valued Contributor

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

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

amreen
New Contributor

Hi Team, 
File reader is not evaluating date dynamically

amreen_0-1715949040903.png

 

rnbabar
New Contributor II

Hi Amreen

       Try this

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

rnbabar
New Contributor II

Hi Amreen

Try this

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