Home › Forums › Add-ons › Repeater Field › Add one year to a date › Reply To: Add one year to a date
Hi @titia2478,
There’s a great example in the ACF Date Picker docs under “Advanced” that will help you achieve this!
The example increases it by a day, so you could adjust accordingly for your needs to increase it by a year and then output that new date in your chosen format.
(If you want to learn more about the PHP modify function, here are the docs for that as well).
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.