String to Date format

Hey guys !

I’m trying to convert a string date into a date format (when I get the data from my API call, the result is something formatted in ISO, so basically, it looks like this : 2024-01-17T12:00:00Z).

So my need is to convert this string into a date format and store it in my database (so in the database, if we take this example “2024-01-17T12:00:00Z”, it has to store something like 01/17/2024:12:00 am). As far as I know, Bubble doesn’t handle it right ?

Can someone help me please ? Thanks in advance :grin: !

Bubble can handle this for you.

When initialising the API call, Bubble might automatically set the type of the field to ‘text’ as it recognises it as a string. However you can manually change it to a ‘date’ and bubble shuold be able to parse it.

1 Like

Works like a charm ! Thanks mate !

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