# Segment Based on Hour/Minutes

**URL:** <https://forum.mautic.org/t/segment-based-on-hour-minutes/28951>\
**Category:** Product Support\
**Created:** [August 15, 2023, 7:19am UTC](https://forum.mautic.org/t/segment-based-on-hour-minutes/28951 "2023-08-15T07:19:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [August 15, 2023, 7:19am UTC](https://forum.mautic.org/t/segment-based-on-hour-minutes/28951/1 "2023-08-15T07:19:08Z")

</div>

I am trying to create a segment based on a date/time custom field where the filter is based on either a number of minutes or hours, I have tried using \>= -15 minutes and \>= 1 hour, but neither of them seem to be working.

Has anyone tried this or maybe knows of a different syntax?

---

<div class="post-metadata">

**Author:** ![EJL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ejl/32/12155_2.png) [@EJL](https://forum.mautic.org/u/EJL)\
**Post date:** [August 15, 2023, 1:25pm UTC](https://forum.mautic.org/t/segment-based-on-hour-minutes/28951/2 "2023-08-15T13:25:31Z")

</div>

Ive never had any luck with date/time fields. I ended up tagging the contacts with a tag and using the tag presence to build the segment. Id love to hear the solution as well.
