Skip to main content
Question

I want to filter a date attribute field. I only want the features with the current date to return. What would be the way to go?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

Forum|alt.badge.img

I would use AttributeCreator using the Text Editor function in the properties of that transformer. There is an option called DateTime Functions and then DateTimeNow. Use a DateFormatter transformer to format to the desired date type and then a Tester to see if your date matches the new attribute.

Maybe quicker ways but that is how I would do it


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • May 4, 2017

I would use the Tester if you have FME 2017. You can use the Arithmetic Editor to do a formula like:

Current_day - Date_attribute in days < 1 (not always today, but less than a day old).

or Current_day (formatted as "YYYYMMDD") = Today() (formatted as "YYYYMMDD")


  • Author
  • May 5, 2017

Thanks for the answers. I'll give it a shot!