Home › Forums › Backend Issues (wp-admin) › Date Time Picker – End-Date after Start-Date › Reply To: Date Time Picker – End-Date after Start-Date
To automatically set the end date when the start date is changed you would need to build custom javascript, here is an example: https://www.damiencarbery.com/2020/06/acf-date-picker-set-end-date-to-after-start-date/
To require it to be after the start date you need to use an acf/validate_value filter, there is an example of this here https://support.advancedcustomfields.com/forums/topic/how-to-use-acf-datepicker-for-start-date-less-than-end-date-validation/
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.