# Custom Date Conditions - Testing

**URL:** <https://forum.mautic.org/t/custom-date-conditions-testing/27286>\
**Category:** Product Support\
**Created:** [March 8, 2023, 1:01am UTC](https://forum.mautic.org/t/custom-date-conditions-testing/27286 "2023-03-08T01:01:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisjrocha](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@chrisjrocha](https://forum.mautic.org/u/chrisjrocha)\
**Post date:** [March 8, 2023, 1:01am UTC](https://forum.mautic.org/t/custom-date-conditions-testing/27286/1 "2023-03-08T01:01:07Z")

</div>

Hello, I am trying to send an email based on a custom date condition. I am following this article here.

> **[How to Use Custom Date Conditions in a Campaign - Mautic](https://mautic.com/help/custom-date-conditions/)**
>
> As of the September 2017 update (Mautic 2.10), you can now create a condition in a campaign that allows you to set an action for any date relative to the value in a date field on contact record.

I want to send am email to a user who’s expiration expires in 2 days. Here is what the campaign looks like and the custom date condition…

![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/546c1ec720688064c12812dc7803ca61d695cfdb.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/9e4193abcebc5812e3e6ab7aca0ce85e3e107626.png)

To test this, I set the users expiration date to 2 days in the future and add them to the campaign. However, the campaign fails and does not send the email. I’m not sure what is wrong. Any suggestions?

Thanks

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [March 8, 2023, 5:49am UTC](https://forum.mautic.org/t/custom-date-conditions-testing/27286/2 "2023-03-08T05:49:59Z")

</div>

Hi, if the date is in the future then you have to try +2 days.
