How to name a csv file by current date?
tahsin
New Altair Community Member
Hello,
I am using a Write csv operator followed by a Send Mail operator to send out the csv file to the given email. It looks alright but I want to name csv file by the current date, so for example, for June 30, 2021 it will be "5/30/2021 data.csv" and it will change everyday when I run the process. I am not sure how can I do it.
Any help is appreciated. Thanks.
I am using a Write csv operator followed by a Send Mail operator to send out the csv file to the given email. It looks alright but I want to name csv file by the current date, so for example, for June 30, 2021 it will be "5/30/2021 data.csv" and it will change everyday when I run the process. I am not sure how can I do it.
Any help is appreciated. Thanks.
0
Best Answer
-
Hi @tahsin,
Have you used macro? A quick tip is naming the out put CSV file as something like “Result table %{t}.csv”, where %{t} represents the current timestamp
https://docs.rapidminer.com/latest/studio/getting-started/macros.htmlYou can also “generate macro” with date functions date_now() and transform your timestamp to a specific
format.0
Answers
-
Hi @tahsin,
Have you used macro? A quick tip is naming the out put CSV file as something like “Result table %{t}.csv”, where %{t} represents the current timestamp
https://docs.rapidminer.com/latest/studio/getting-started/macros.htmlYou can also “generate macro” with date functions date_now() and transform your timestamp to a specific
format.0