Changing date formats from text to Airtable field

Hello everyone, I need help !!!

I’m trying to populate a date/time field in Airtable that is set to Local format (14/08/2025).
The data I need to retrieve comes out of my Text Parser module in the following format:

What I need is to extract the pickup_datetime value, convert it into a format that Airtable recognizes, and then insert it into my table correctly.

I’ve tried dozens of approaches, but I just can’t get this line to convert properly !
Please, does anyone have the solution ?

Thanks,

Morgan

Hello
You can use the built-in “formatdate“ function of make.

What you have to do is: formatdate(your_current_date; your preferred date format).

Hi @morgan_moussier,

I think instead of the formatDate() function you need to use the parseDate() function. This function takes in a string + your definition of how the string has to be read and gives back a date. However, I’m not even sure that this is possible.

Is the data always like this or does it differ sometimes? If it’s always the same you might come up with a way to convert it to a date. First word is the day, then the number…
Alternatively, you could feed this to Gemini and ask for a date back. Should work and is basically free too.

Best,
Richard

Hello @morgan_moussier ,

Considering the value of pickup_datetime is a string, I would use both parseDate() and formatDate(). First I would replace the word “at“ or in your case “à“ with just a space. Then I would take the resulting string and input it into parseDate() indicating that the format that was used was dddd D MMMM YYYY H:mm. Finally I would use formatDate() to choose the format that you want. In the example i am showing you i chose DD/MM/YYYY which would result in 18/07/2025.

Best,

Mary

Thanks for your answer. The issue is that Make doesn’t recognize dates in French, so I used a Text Parser / Match Pattern to split all the data from my “date” field, then a Set Multiple Variables module to convert the months into numbers, and finally I combined everything into an ISO date. Anyway, thanks a lot for your help!

3 Likes

That’s what I was afraid of! @Mary1’s formula would have been perfect for English!

You went all the way - great job! :smiley:

@morgan_moussier Parsing and formatting dates in other languages can be tricky and ops consuming but you can use Native AI modules by make like “Request Anything”. Here is how you can find and use it.


With Weekday

AI Makes things a bit easier.

Best,
@Prem_Patel