Support

Account

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
    }