The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
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, 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