Oct 03, 2019 03:33 AM
Hello,
i’d like to add X month to a given date. Example
12/31/2019 + 1 month = 12/31/2020
=EDATE(date,months)
How can i do this with Airtable. I got stuck, because there is no EDATE function like in Excel.
Thank you for your help
Emin
Oct 03, 2019 06:33 AM
Hi @eminogrande - you can use the DATEADD()
function:
DATEADD(Date, 1, 'months')
More details here:
JB
Mar 27, 2021 08:19 AM
Hi all,
I have the same question but, instead of wirting the duration (1 in exemple above) I want to refer to a previous column.
I tryed DATEADD({date},{field with duration},‘months’) but it doesn’t work (initial date is displayed)
The field with duration is a lookup from another table and is set as Number, integer format
Any idea?
Thanks for your help,
Laurent
Mar 27, 2021 08:38 AM
A lookup field is actually an array. You can turn it into a string by adding quotation marks after it like this:
DATEADD({date},{field with duration}&"",'months')
Mar 27, 2021 09:53 AM
Hi Scott,
It works fine.
I will check the meaning to understand and use it.
Many thanks,
Laurent