Support

Account

Home Forums Backend Issues (wp-admin) Setting minDate on Datepicker Reply To: Setting minDate on Datepicker

  • You might doing it wrong. See here how you can set your custom settings:

    
    acf.add_filter('date_picker_args', function( args, $field ){
      if($field.attr('data-key') == 'field_58235f2750d77') { // you might want to tweak this field key to match your key
        args.minDate = -2;
      }
      return args;
    });