# Do something "datetime field +2 hours"

**URL:** https://forum.mautic.org/t/do-something-datetime-field-2-hours/31094
**Category:** General Discussion
**Created:** [February 28, 2024, 2:57pm UTC](https://forum.mautic.org/t/do-something-datetime-field-2-hours/31094 "2024-02-28T14:57:57Z")
**Posts on this page:** 3
**Page:** 1

<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: [February 28, 2024, 2:57pm UTC](https://forum.mautic.org/t/do-something-datetime-field-2-hours/31094/1 "2024-02-28T14:57:58Z")

</div>

Hi,  
I have a problem. I need to send out an email 2 hours after a datetimefiled value.  
I don’t want to run cyclical campaigns (check if its valid now, if not jump back)

“now” doesn’t seem, to work.  
+2 hours, +120 minutes doesn’t seem to work.

This datetime can be any time in working hours, every day of the week.

Any idea? 🙂  
Thx.

---

<div class="post-metadata">

### Author: ![Madlen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/madlen/32/15300_2.png) [@Madlen](https://forum.mautic.org/u/Madlen)
#### Post date: [February 29, 2024, 4:03pm UTC](https://forum.mautic.org/t/do-something-datetime-field-2-hours/31094/2 "2024-02-29T16:03:10Z")

</div>

Hi Joey! I don’t have a solution where you don’t need to check cyclical, but I would solve it as follows:

1. Create a segment that filters on the datetime field with “equals” on “today”
2. Start a campaign from that segment. It checks if it’s 2 hours after that datetime field value now. If not, it jumps to the dummy (could be something like contact field value email is not empty) and checks again in 1 hour. If yes, it sends the email (either immediately or configure specific hours, e.g. wait 0 days and send between 8AM and 6PM)

 ![Bildschirm­foto 2024-02-29 um 16.58.05](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/9/9a9f2629fc93c619969753854757f596448cd73f.png)

 ![Bildschirm­foto 2024-02-29 um 16.58.42](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/02346b1c3a4c7554252da6c058df0d003e711f2e.png)

---

<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 2, 2024, 4:03am UTC](https://forum.mautic.org/t/do-something-datetime-field-2-hours/31094/3 "2024-03-02T04:03:23Z")

</div>

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