I think I found my solution. I found it at the bottom of this thread:
I changed my code as follows:
$date = DateTime::createFromFormat('Ymd', get_field('class_date')); echo '<p>' . $date->format('F j, Y') . '</p>';
I changed ‘yymmdd’ to ‘Ymd’ and then changed the format value from ‘F n Y’ to ‘F j, Y’.
I’m now confused because the documentation tells us to use the save format yymmdd and since we are using the Jquery picker, to format using the JS Date Format. I never thought to try PHP Date format and it worked. Maybe I don’t fully understand the documentation, but this is where some of my confusion lies. Anyway, the code seems to be pulling the correct date and formatting the way I configured it to.
Thank you for your help!
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 21, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.