Home › Forums › ACF PRO › Multiple Date Ranges – Date Picker › Reply To: Multiple Date Ranges – Date Picker
The exact details of what you do would depend on the settings of the field.
Something like
// depends on acf returning a date format compatible with PHP date functions
$month = date('n', strtotime(get_field('date_field_name')));
if ($month >= 1 && $month <= 3) {
// it's spring
}
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.