Skip to main content
Solved

Calculating previous dates

  • March 23, 2021
  • 2 replies
  • 558 views

mr_fme
Enthusiast
Forum|alt.badge.img+9

I have a table that has almost 1000 rows, but these rows have a date field. I need to make a filter, which I can only use from today's date the previous 3 days ... however, I have some doubts on how to do a subtraction for example if today is 01/4/2021 (mm / dd / yyyy )

Best answer by ebygomm

I would format your dates into FME format with a DateTimeConverter then in a tester you can test for if the Date is greater than the DateTimeNow minus 3 days (-P3D). Note that the comparison mode in the tester is set to Date/Time

Capture

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.

2 replies

ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • March 24, 2021

I would format your dates into FME format with a DateTimeConverter then in a tester you can test for if the Date is greater than the DateTimeNow minus 3 days (-P3D). Note that the comparison mode in the tester is set to Date/Time

Capture


mr_fme
Enthusiast
Forum|alt.badge.img+9
  • Author
  • Enthusiast
  • March 25, 2021

I would format your dates into FME format with a DateTimeConverter then in a tester you can test for if the Date is greater than the DateTimeNow minus 3 days (-P3D). Note that the comparison mode in the tester is set to Date/Time

Capture

Thank“s for your attention