Skip to main content
Solved

user parameter to read google sheets features with timestamp in a range

  • November 21, 2018
  • 1 reply
  • 10 views

Forum|alt.badge.img

I have a google sheet I am trying to read in that has Timestamp as an attribute, mm/dd/yyyy hh:mm: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?

Best answer by ebygomm

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

View original
Did this help you find an answer to your question?

1 reply

ebygomm
Influencer
Forum|alt.badge.img+33
  • Influencer
  • Best Answer
  • November 21, 2018

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


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