Filter condition like "from now to now+1 year" on a date field in Views I have a custom entity with (among others) a field defined this way:

$fields['datedistribution'] = BaseFieldDefinition::create('datetime')
  -&gt;setLabel(t('Date distribution'))
  -&gt;setSetting('datetime_type', 'date')
  -&gt;setDefaultValue(array(0 =&gt; array(
    'default_date_type' =&gt; 'now',
    'default_date' =&gt; 'now',
  )))
  -&gt;setDisplayOptions('view', array(
    'label' =&gt; 'above',
    'weight' =&gt; 2,
  ))
  -&gt;setDisplayOptions('form', array(
    'weight' =&gt; 2,
  ))
  -&gt;setDisplayConfigurable('form', TRUE)
  -&gt;setDisplayConfigurable('view', TRUE);


The values of this field are stored in the database in YYYY-MM-DD format.
I designed a View on this custom entity displaying (among others) this 'datedistribution' field and I use it as a filter criterion.
I would like to a filter condition like "from now to now+1 year".
The available operators being


how can I do that?
I believe I can help, if I understand your question correctly.
First you should make sure that when you set the filter up, it's in Select form.


Then you can select the operator as "is between"
Then you select "Enter a relative date" in the dropdown, and you can put now and now+1 year. Not sure if your date fields have a start and end date...