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?


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+19
  • 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!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings