Hi,
i have two “Date Time Picker” Fields. “start-date” and “end-date”.
I would like the “end-date” to be set to the “start-date” on editing.
It would be nice, if the end-date could also be required to be after start-date.
How can I do this?
Thanks!
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/