The DateTimeFilter custom transformer allows you to filter features based on a date/time attribute.
It supports multiple filtering modes to test whether an entity’s date value falls before, after, within, or around specified ranges.
Functionality
The transformer evaluates the value of a selected DateTime attribute (in FME Date/Time format) against user-defined conditions.
Depending on the chosen filter type, features are routed to either:
Passed: if the feature’s date meets the filter condition.
Failed: if the feature’s date does not meet the filter condition.
Filter Types
After Date: features with dates strictly after the specified date.
Before Date: features with dates strictly before the specified date.
Between Dates: features with dates between two specified dates (inclusive).
From Date + Duration: features with dates occurring after a given start date, for a specified duration (in minutes).
Until Date - Duration: features with dates occurring before a given end date, within a specified duration (in minutes).
Around Date (± Duration): features with dates falling within a symmetric window around a given date (± duration in minutes).
Parameters
Parameter
Type
Description
DateTime Attribute (FME Format)
Attribute Selector
Attribute containing the feature’s date value to test.
Filter Type
Choice
Defines the filtering mode. Options: After Date, Before Date, Between Dates, From Date + Duration, Until Date - Duration, Around Date (± Duration).
Date
Date
Used when Filter Type is After Date, Before Date, or Around Date (± Duration).
From
Date
Used when Filter Type is Between Dates or From Date + Duration.
To
Date
Used when Filter Type is Between Dates or Until Date - Duration.
Duration (Minutes)
Integer
Used when Filter Type is From Date + Duration, Until Date - Duration, or Around Date (± Duration).
Output Ports
Passed: Features whose date satisfies the filter condition.
Failed: Features whose date does not satisfy the filter condition.
⚠️ Note: Input dates must be in valid FME Date/Time format for proper evaluation.
Would you like to know more? Click here to find out more details!