# Rule to filter date of birth

**URL:** <https://gramps.discourse.group/t/rule-to-filter-date-of-birth/5975>\
**Category:** Help\
**Created:** [September 1, 2024, 1:14pm UTC](https://gramps.discourse.group/t/rule-to-filter-date-of-birth/5975 "2024-09-01T13:14:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nils-Arvid](https://avatars.discourse-cdn.com/v4/letter/n/439d5e/32.png) [@Nils-Arvid](https://gramps.discourse.group/u/Nils-Arvid)\
**Post date:** [September 1, 2024, 1:14pm UTC](https://gramps.discourse.group/t/rule-to-filter-date-of-birth/5975/1 "2024-09-01T13:14:12Z")

</div>

Gramps 5.2.3 on Windows 11 and Ubuntu 24.04LTS  
When i create a filter with Date of Birth “after 1935” and “between 1935 and 2023” i get different results.  
And it differs also between Windows and Ubuntu.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [September 1, 2024, 1:22pm UTC](https://gramps.discourse.group/t/rule-to-filter-date-of-birth/5975/2 "2024-09-01T13:22:22Z")

</div>

See the following discussion:

> [@Strange calculated age result](https://gramps.discourse.group/t/strange-calculated-age-result/5787):
>
> A person, born in 1936, has a relationship with an other person (birthdate unknown). From memory I only know vague dates. So in the Person category I made an event ‘Relationship’ with the following date entry ‘estimated between 1968 and 1978’. Which is accepted as being valid. When I close the date entry, the age of the person is calculated 'between 19 years and 94 years). What is going on here? Did I do something wrong? AIO64-5.2.2-r1-f905d14, Win11

You need to need aware of how those “[Limits](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Settings#Limits)” preferences for [Date Quality](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_1#Date_Quality) can be fine-tuned to get the desired results.

However, if the limits have been set the same way, different results between OSes should be explored and discussed.

---

<div class="post-metadata">

**Author:** ![Davesellers](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesellers/32/1457_2.png) [@Davesellers](https://gramps.discourse.group/u/Davesellers)\
**Post date:** [September 1, 2024, 3:27pm UTC](https://gramps.discourse.group/t/rule-to-filter-date-of-birth/5975/3 "2024-09-01T15:27:40Z")

</div>

It depends how you have defind “before” and “after” in preferences. The default is 50 years. So if you say after 1935, that will give you the range of 1935 to 1985.  
Because of how before/after works in Gramps I always use “between” to get the results I’m looking for.

---

<div class="post-metadata">

**Author:** ![Urchello](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@Urchello](https://gramps.discourse.group/u/Urchello)\
**Post date:** [September 1, 2024, 5:55pm UTC](https://gramps.discourse.group/t/rule-to-filter-date-of-birth/5975/4 "2024-09-01T17:55:14Z")

</div>

> [@Davesellers](#):
>
> It depends how you have defind “before” and “after” in preferences. The default is 50 years. So if you say after 1935, that will give you the range of 1935 to 1985.

This is very often problem for Gramps users. Nobody understands why dates make such strange calculations. Much more better would turn off (or set to zeros) these “before”, “after” settings. But currently this is impossible. More advanced users could turn on it if they need.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [September 1, 2024, 6:04pm UTC](https://gramps.discourse.group/t/rule-to-filter-date-of-birth/5975/5 "2024-09-01T18:04:06Z")

</div>

> [@Urchello](#):
>
> This is very often problem for Gramps users. Nobody understands why dates make such strange calculations. Much more better would turn off (or set to zeros) these “before”, “after” settings. But currently this is impossible. More advanced users could turn on it if they need.

There’s an ongoing discussion about changing the defaults to favor new users. (For Limits, a 5 year instead of 50 year setting would make the approximation less than a lifetime in length. Which would make filtering easier to stay within a single generation.) It has not gained any traction yet.

I suspect that some (successful) experiments in applying “advanced user” settings via a SuperTool script might reduce some of the resistance.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [October 1, 2024, 6:04pm UTC](https://gramps.discourse.group/t/rule-to-filter-date-of-birth/5975/6 "2024-10-01T18:04:10Z")

</div>

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