# PyBIS date range condition

**URL:** <https://community.openbis.ch/t/pybis-date-range-condition/666>\
**Category:** Developments\
**Created:** [11 August 2026 07:41 UTC](https://community.openbis.ch/t/pybis-date-range-condition/666 "2026-08-11T07:41:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sasfro](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sasfro](https://community.openbis.ch/u/sasfro)\
**Post date:** [11 August 2026 07:41 UTC](https://community.openbis.ch/t/pybis-date-range-condition/666/1 "2026-08-11T07:41:16Z")

</div>

Hello,

Is it possible to search for a date range with pybis? Using release 1.37.4. I couldn’t find any operator, but maybe I missed it. Using the same property in the where multiple times also does not work because it is a dict where the key is unique.

I try to achieve the following:

```python
o.get_objects(
    where={
        'event_date': '=>2026-01-01',
        'event_date': '<=2026-01-31',
    }
)

```

Thx for any help.

---

<div class="post-metadata">

**Author:** ![alaskowski](https://dub1.discourse-cdn.com/flex013/user_avatar/community.openbis.ch/alaskowski/32/65_2.png) [@alaskowski](https://community.openbis.ch/u/alaskowski)\
**Post date:** [19 August 2026 14:19 UTC](https://community.openbis.ch/t/pybis-date-range-condition/666/2 "2026-08-19T14:19:52Z")

</div>

Hello,

Although it does not look pretty, you can leverage that pybis does not perform case conversion for property names in `where` clause:

```python
samples = o.get_objects(where={
        'start_date': '>=2026-08-18',
        'START_DATE': '<=2026-08-19'
    })

```

Best,

Adam

---

<div class="post-metadata">

**Author:** ![sasfro](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sasfro](https://community.openbis.ch/u/sasfro)\
**Post date:** [20 August 2026 13:17 UTC](https://community.openbis.ch/t/pybis-date-range-condition/666/3 "2026-08-20T13:17:06Z")

</div>

Good trick to know 🙂 Works for me, thanks!

B, Sascha
