Help

Re: Name of the month by date [Formula]

9555 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Mikko_Mantere
5 - Automation Enthusiast
5 - Automation Enthusiast

Hey,

Is there a formula that pics the name of the month by date. We have built a system where we manage our project invoicing. We send our customers an invoice on a monthly basis based on the work completed, but we try to forecast the billing months by recording the assumed billing month for the project part. So, Airtable should understand that the (billing) month is a date field (billing predictability), but the option value should be the name of the month

Thanks

Mikko

15 Replies 15

To convert a date to a month name, use the DATETIME_FORMAT() function with the MMMM format specifier.

DATETIME_FORMAT({date}, 'MMMM')

Hi @kuovonne, thanks for your reply :slightly_smiling_face:
Do you know how I could add the year, after your fomula with the month ?

So I could convert : 2021-05-11
To May 2021 for exemple

Thanks ! :slightly_smiling_face:

You can include the format specifier for the year.

DATETIME_FORMAT({date}, 'MMMM YYYY')

Sorry for the late reply, I missed it ! Thanks for your reply ! :slightly_smiling_face:

By chance, maybe you could help me with another little issue :

When I use this formula and group my row by date (with the month and year), Airtable sort the date in alphabetical order, and not Chronologic order.

Screenshot 2021-05-31 at 08.27.30

Do you know if there is a way to sort by chronologic order, to have :
January 2019
February 2019

January 2020

Thanks !

Im interested to know also

Max_Ov
4 - Data Explorer
4 - Data Explorer

Hi,
I ran into the same issue, so I concatened the month number with the month:
DATETIME_FORMAT({Date}, ‘MM MMMM’)

Thank you so much for answering this question! Just wondering what I would add to this formula to leave it blank if there’s no date selected, rather than returning an #ERROR? Thank you

IF(
  {date},
  DATETIME_FORMAT({date}, 'MMMM YYYY')
)

Thank you! Really appreciate your quick help :slightly_smiling_face: