I was wanting to find a way to add 10 years to a date and found a simple way that works! In my formula, the manufacture date is the start date and I’m using this in a field to calculate the 10-year shelf life.
I’m very curious. What are your exact requirements for your +10 years calculation that led you to this exact expression?
What other expressions did you find and how did they not match, or how were they too complicated?
What about: [Date] + 365*10 ?
Or: MONTH([Date]) & ‘/’ & DAY([Date]) & ‘/’ & YEAR([Date])+10
Hi Marc: Just a small point that I think the expression MONTH([Date]) & ‘/’ & DAY([Date]) & ‘/’ & (YEAR([Date])+10) may give error on one edge case of 29th Feb in a leap year. Addition of 10 years will not be a leap year and it will give date as 29th Feb in a non leap year.
The expression EOMONTH([Date], 119)+DAY([Date]) will roll over to 1st March for the 10 year after date if the [Date] is 29th Feb in a leap year as there is simply no 29th Feb in a non leap year.
Hi Marc, I have some products that have a 10-year shelf life so I have a column “Shelf life ends” with this formula that calculates 10 years from the date I add in the “Manufacture Date” column. But, I only want the year to change, not the month and day.
So, if something is manufactured 3/11/2022, I want the shelf life ends date to show 3/11/2032.
Most expressions I found calculated using EOMONTH() or other variations that would change the month/day.
This isn’t a perfect formula for adding 10 years exactly, but it adds 10 years to the year.
I hadn’t tried the second you suggested but I can!
In this expression, [Manufacture Date] represents the start date or the date of manufacture. The expression calculates the adjusted date by adding 10 to the year of the manufacture date while keeping the same month and day.
but your solution worked.
eu precisava somar 5 anos a uma data de fechamento de um certificado e subtrair da data atual para obter um leadtime.
Usei a seguinte formula:
HOUR((EOMONTH([Data de FECHAMENTO],60))-(HOUR(EOMONTH([Data de FECHAMENTO],0) - [Data de FECHAMENTO]) / 24)- TODAY()) / 24
Yah, this should be the actual marked solution on this thread. @lizlynch or @Roderick , can you help us out and mark @Suvrutt_Gurjar solution here as the solution for this thread, and remove sirfyaad’s, to avoid any further confusion?