# Relative Date queries not working?

**URL:** <https://speciforum.org/t/relative-date-queries-not-working/2764>\
**Category:** Get Help\
**Created:** [August 7, 2025, 9:13pm UTC](https://speciforum.org/t/relative-date-queries-not-working/2764 "2025-08-07T21:13:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nfshoobs](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/nfshoobs/32/3979_2.png) [@nfshoobs](https://speciforum.org/u/nfshoobs)\
**Post date:** [August 7, 2025, 9:13pm UTC](https://speciforum.org/t/relative-date-queries-not-working/2764/1 "2025-08-07T21:13:06Z")

</div>

7.11.0.2

I don’t know when this broke exactly because I don’t use this query method often, but it appears that one of the recent updates broke relative date queries in Specify 7.

The stock Specify stats panel queries which use relative date operators on the catalogued date field are not working as expected. Messing around with this, I can see that it’s actually all relative date operator queries that are broken.

**To reproduce:** query using a relative date operator on any table with a date field.

Behavior is as follows (not going to screencap all of them, the gist is quick to get):

- Greater than (or equal to) [# days/weeks/months/years] “in the past” = all records in table that are not null for the queried date field.
- Greater than (or equal to) [# days/weeks/months/years] “in the past” = all records in table that are not null for the queried date field.
- Less than (or equal to) [# days/weeks/months/years] “in the past” = no records
- Less than (or equal to) [# days/weeks/months/years] “in the future” = no records

Negating the conditions works as expected:

- NOT Greater than (or equal to) [# days/weeks/months/years] “in the past” = no records
- NOT Greater than (or equal to) [# days/weeks/months/years] “in the past” = no records
- NOT Less than (or equal to) [# days/weeks/months/years] “in the past” = all records in table that are not null for the queried date field.
- NOT Less than (or equal to) [# days/weeks/months/years] “in the future” = all records in table that are not null for the queried date field.

 ![Screenshot 2025-08-07 at 4.55.36 PM](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/6/62b07ff93a96dfddc12b247b02f7631ab9a37a5f.png)

 ![Screenshot 2025-08-07 at 4.55.21 PM](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/e/eedfa7205f05c39813d8466b0a757068319a2d57.png)  
 ![Screenshot 2025-08-07 at 5.12.38 PM](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/7/788c02aa9b7c76e2ba78a0a79df87597403d2e66.png)

---

<div class="post-metadata">

**Author:** ![Elizabeth](https://avatars.discourse-cdn.com/v4/letter/e/34f0e0/32.png) [@Elizabeth](https://speciforum.org/u/Elizabeth)\
**Post date:** [August 8, 2025, 5:12pm UTC](https://speciforum.org/t/relative-date-queries-not-working/2764/2 "2025-08-08T17:12:03Z")

</div>

Hi @nfshoobs,

Thank you for reaching out! Querying on relative dates is fixed in [v7.11.1](https://speciforum.org/t/specify-7-11-1-release-announcement/2723) which released today and will be available to all hosted users on Monday.

---

<div class="post-metadata">

**Author:** ![nfshoobs](https://yyz1.discourse-cdn.com/flex029/user_avatar/speciforum.org/nfshoobs/32/3979_2.png) [@nfshoobs](https://speciforum.org/u/nfshoobs)\
**Post date:** [August 8, 2025, 6:58pm UTC](https://speciforum.org/t/relative-date-queries-not-working/2764/3 "2025-08-08T18:58:14Z")

</div>

Oh good! Glad to see it’ll be fixed when we pull that update. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/specifysoftware/original/2X/1/18a843c97bc32b40e8ad0e035755bc88ffaacaf7.svg) [@system](https://speciforum.org/u/system)\
**Post date:** [August 15, 2025, 6:59pm UTC](https://speciforum.org/t/relative-date-queries-not-working/2764/4 "2025-08-15T18:59:05Z")

</div>

Closed on August 15, 2025, 6:59pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
