Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
How to name a csv file by current date?
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
-
yyhuang Administrator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 364 RM Data ScientistHi @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