Home › Forums › ACF PRO › Datepicker exclude month name output if in the same month › Reply To: Datepicker exclude month name output if in the same month
@dotwongdotcom perfect, then you just need to detect if both months are the same, or if they’re different.
You can find out how to turn a date value into a PHP Date object here: https://www.advancedcustomfields.com/resources/date-picker/
Use that to wire up your logic to figure out if the months are the same or different.
Phil
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.