How to recognize text/string date from JSON api as date type in bubble?

HI everyone,

I need to fetch an endpoint from a third party api and I need to make their endpoint’s date be recognized by bubble.

Here is an example how the data is displayed that is recognized as text by bubble:

        "pk": 922403148,
        "start_at": "2023-09-13T13:00:00-0700",
        "end_at": "2023-09-13T14:30:00-0700"

As you see there are two dates as strings from this payload.

Therefore, how can I make these dates be recognized in bubble?

When connecting APIs, immediately you initalize the call Bubble asks you to check if the data are the right data types.
For example for your JSON, Bubble would show something similar to

PK --------------number
start_at --------- date
end_at ---------- date

If there’s an incorrect data type, you can tell Bubble what the right data type may be. For example assuming Bubble recognizes PK as text instead of Number, you will simply select the “Text” dropdown and switch it to number.

TRUE, that is right. OMG it was there all the time!! no way.
You have no idea how many logic I have done just to get the type.


Apreciated Panto9

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.