Answers for "Run part of FME Workspace based on day of the week or if date = X" https://knowledge.亚搏在线safe.com/questions/83842/run-part-of-fme-workspace-based-on-day-of-the-week.html The latest answers for the question "Run part of FME Workspace based on day of the week or if date = X" Answer by daveatsafe https://knowledge.safe.com/answers/83846/view.html

Hi@dmerrick,

You can do this with a few transformers:

  • DateTimeStamper to generate a datestamp on each feature
  • DateTimeConverters to convert the datestamp to day of week (%w) and day of month (%e)
  • Testers to test if day of week == 2 (Tuesday) or day of month == 1
Wed, 05 Dec 2018 00:20:50 GMT daveatsafe
Answer by jlutherthomas https://knowledge.safe.com/answers/83844/view.html

Hi@dmerrick

You could create an attribute using python that would be able to tell you the day of the week as an integer (0=Monday...) and then use a TestFilter to route the features depending on what you want to do.

To do this, I set the PythonCaller up like this:

Wed, 05 Dec 2018 00:12:26 GMT jlutherthomas