# Postman Flow - Find prior hour based on current date/time

**URL:** <https://community.postman.com/t/postman-flow-find-prior-hour-based-on-current-date-time/60245>\
**Category:** Help Hub\
**Tags:** postman-flows\
**Created:** [April 23, 2024, 3:46pm UTC](https://community.postman.com/t/postman-flow-find-prior-hour-based-on-current-date-time/60245 "2024-04-23T15:46:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![payload-architect-98](https://avatars.discourse-cdn.com/v4/letter/p/cc9497/32.png) [@payload-architect-98](https://community.postman.com/u/payload-architect-98)\
**Post date:** [April 23, 2024, 3:46pm UTC](https://community.postman.com/t/postman-flow-find-prior-hour-based-on-current-date-time/60245/1 "2024-04-23T15:46:02Z")

</div>

I am working through a flow and have an API which is returning with a field that shows the date/time stamp. I am trying to find record the prior hour of that timestamp.

Example: Now() = “2022-12-15T23:01:57.064368Z”

In this example, I would like to look at only records that are between 22:00 - 23:00. Note, It is possible that it could be the prior day.

---

<div class="post-metadata">

**Author:** ![payload-architect-98](https://avatars.discourse-cdn.com/v4/letter/p/cc9497/32.png) [@payload-architect-98](https://community.postman.com/u/payload-architect-98)\
**Post date:** [April 23, 2024, 4:12pm UTC](https://community.postman.com/t/postman-flow-find-prior-hour-based-on-current-date-time/60245/2 "2024-04-23T16:12:23Z")

</div>

I found a solution here by using the evaluate block and doing a $dateplus

 ![Screenshot 2024-04-23 at 11.12.03 AM](https://us1.discourse-cdn.com/getpostman/original/3X/7/0/705b213311ff14aa1bd4ca8e31acd9efe8061027.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [April 26, 2024, 4:12pm UTC](https://community.postman.com/t/postman-flow-find-prior-hour-based-on-current-date-time/60245/3 "2024-04-26T16:12:25Z")

</div>

Closed on April 26, 2024, 4:12pm UTC

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