Skip to main content
Solved

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

  • November 21, 2018
  • 1 reply
  • 19 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

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.

1 reply

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3429 replies
  • 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