Skip to main content

I need help on a date conversion formula


Hello, I need help on an airtable formula. I have a date conversion formula: but I would like if the table is empty it says "Enter your birthday date" To avoid the error message please 

my formula : 

DATETIME_FORMAT(Dateofbirth, 'DD MMMM YYYY')

thank you in advance

4 replies

Hi Philippe, see attached screen shots if you are more visual.

Based on your example, that would do it:

--

IF(Dateofbirth, DATETIME_FORMAT(Dateofbirth, 'DD MMMM YYYY'), "Enter your birthday date")

--

 

There might be other ways to do it. Hope it helps.

Cheers.

Matt


Ben_Young1
Forum|alt.badge.img+9
  • Brainy
  • 520 replies
  • January 31, 2023

Hey @Philippe_Creve_ !

Here's a formula that accomplishes what you're looking for:

IF( {Date}, DATETIME_FORMAT( {Date}, "DD MMMM YYYY" ), "Please Enter Your Birthday" )

Feel free to pop your own preferred message into the formula if you'd like to change it around.

 


Matt_Boudreau wrote:

Hi Philippe, see attached screen shots if you are more visual.

Based on your example, that would do it:

--

IF(Dateofbirth, DATETIME_FORMAT(Dateofbirth, 'DD MMMM YYYY'), "Enter your birthday date")

--

 

There might be other ways to do it. Hope it helps.

Cheers.

Matt


Hello Matt,

Thank you very much for your quick response, it helps me a lot.


Ben_Young1 wrote:

Hey @Philippe_Creve_ !

Here's a formula that accomplishes what you're looking for:

IF( {Date}, DATETIME_FORMAT( {Date}, "DD MMMM YYYY" ), "Please Enter Your Birthday" )

Feel free to pop your own preferred message into the formula if you'd like to change it around.

 


Hello Ben,

Thank you very much for your quick response,

It's awesome

 


Reply