# How to segment customers who purchased in the last 14 days?

**URL:** <https://forum.mautic.org/t/how-to-segment-customers-who-purchased-in-the-last-14-days/23436>\
**Category:** General Discussion\
**Created:** [March 31, 2022, 3:57pm UTC](https://forum.mautic.org/t/how-to-segment-customers-who-purchased-in-the-last-14-days/23436 "2022-03-31T15:57:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![boggspresto](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/boggspresto/32/6678_2.png) [@boggspresto](https://forum.mautic.org/u/boggspresto)\
**Post date:** [March 31, 2022, 3:57pm UTC](https://forum.mautic.org/t/how-to-segment-customers-who-purchased-in-the-last-14-days/23436/1 "2022-03-31T15:57:19Z")

</div>

Hi all,

I know I can currently target customers who purchased after a specific date, but is there a way to target customers who purchased within the past 14 (or X number of) days?

For context: My company is currently sending emails manually to any customers who purchase a product that is soon to be discontinued, so I’m looking to automate this process.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jlbs](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jlbs](https://forum.mautic.org/u/jlbs)\
**Post date:** [April 22, 2022, 8:02pm UTC](https://forum.mautic.org/t/how-to-segment-customers-who-purchased-in-the-last-14-days/23436/2 "2022-04-22T20:02:47Z")

</div>

Assuming you’ve got the purchase date stored in a custom field, this is dead easy!

Create a segment and on the filters tab add a filter: purchase date greater than or equal to `-14 days`

There’s quite a few options for using relative dates in segments, details are [in the documentation](https://docs.mautic.org/en/contacts/manage-segments).
