Filter AirTable rows by time only

What are you trying to achieve?

I want to filter data from an Airtable Database by a time field (shown as H:m in Airtable).

Steps taken so far

For the date I’m using a DATESTR created field and the comparison works perfectly. But I need to compare a time field too and I can’t find a way to help me do that. Not working (the ssecond part): AND({DateStr} = {{formatDate(1.start; “YYYY-MM-DD”)}}, {TimeStart} = {{formatDate(1.start; “H:m”)}} )

Welcome to the Make community!

You have not yet provided sufficient information to allow identification of the issue.

To allow others to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of your full scenario? Also include screenshots of any error messages, module settings (fields), relevant filter settings (conditions), and module output bundles. We need to see what you’re working with to give you the best advice.

You can upload images here using the Upload icon in the text editor:

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Output Bundles of Modules

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved.

Sharing these details will make it easier for others to assist you.

I already tried a lot from converting the duration to a string and mixing it with DateString, source: https://community.airtable.com/other-questions-13/transforming-a-call-duration-number-into-a-datetime-string-to-use-stacker-9347.
Nothing works :frowning:
I’m now stuck mixing any string functions I can find and testing… help pls. Screenshots of everything important:

Pulling Entries from Google Calendar

Pulling data from an airtable and it should only show if there is a hit on the StartTime in Google Calendar and the database.

This formula doesn’t work (or any other I tried that included the time)

The layout of the table I’m pulling. Data fields are Date + TimeStart, DateString is the date as string and TimeStartStr is the duration field converted (Formula in the next screenshot).

Formula for TimeStartStr.

Also tried this before and then compared DateString and this one as seperate fields but it didn’t work either. DateString works fine, also for comparison. I just can’t get the comparison to work for the time.

The solution was: Stoped trying it myself and let ChatGPT do it :). I changed the architecture to have one combined Date+Time field for the start and that way I could to the comparisons with a little forma tweaking.

AND(
  {Event} = {{14.ID}},
  {StartDateTimeComparableBerlin} = "{{formatDate(1.start; "YYYY-MM-DD HH:mm"; "Europe/Berlin")}}"
)

2 Likes