Skip to main content

I need help on a date conversion formula

  • January 30, 2023
  • 4 replies
  • 47 views

Forum|alt.badge.img+2

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

Forum|alt.badge.img+5

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+22
  • Brainy
  • 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.

 


Forum|alt.badge.img+2
  • Author
  • New Participant
  • January 31, 2023

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.


Forum|alt.badge.img+2
  • Author
  • New Participant
  • 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.

 


Hello Ben,

Thank you very much for your quick response,

It's awesome