Skip to main content

I have a google sheet I am trying to read in that has Timestamp as an attribute, mm/dd/yyyy hh🇲🇲ss. I want to only read in those features that fall between provided dates and time - say the records between 09/22/2018 12:00:00 to 10/22/2018 12:00:00. This time range will change each month. This all feeds to a monthly report but the google sheet is cumulative.

Is there a way to create a user parameter to read in only the dates wanted?

The other problem I have is that the reader does not appear to be reading the Timestamp as a date-time format although it is formatted that way in the sheet. Right now I am using a Tester after the reader and set the mode to date/time. When reading the data, the Tester shows "Unable to do a date/time comparison... Comparing as strings instead". None of the records pass the Tester, 74 of them should have passed. How can I set the Timestamp attribute to be read and processed as date-time?

I think you will have to read in the data and then test.

You'll need to use a Date/Time Converter to set the date to FME time and explicitly set the input format before you can do any date comparisons


Reply