# Add a lifetime to a post

**URL:** <https://forum.bubble.io/t/add-a-lifetime-to-a-post/157015>\
**Category:** Database\
**Created:** [June 23, 2021, 1:32pm UTC](https://forum.bubble.io/t/add-a-lifetime-to-a-post/157015 "2021-06-23T13:32:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![toms1234](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@toms1234](https://forum.bubble.io/u/toms1234)\
**Post date:** [June 23, 2021, 1:32pm UTC](https://forum.bubble.io/t/add-a-lifetime-to-a-post/157015/1 "2021-06-23T13:32:39Z")

</div>

Hello,

I’m building an app where i need to display posts with a lifetime \< to 23h, i need to manipulate date but i didn’t find the solution.

I tried to do this : created date \< current date change hours to 23 change minutes to 0  
But it’s not working, i’m sure i do a misktake !

Thanks

---

<div class="post-metadata">

**Author:** ![josh10](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/josh10/32/82900_2.png) [@josh10](https://forum.bubble.io/u/josh10)\
**Post date:** [June 23, 2021, 1:38pm UTC](https://forum.bubble.io/t/add-a-lifetime-to-a-post/157015/2 "2021-06-23T13:38:32Z")

</div>

This could be done in a few ways, but I’m not sure which plan you are on. If it were me, I would create a scheduled backend workflow to run every X number of minutes.

Tell it to display/delete posts when current time \> (post created date/time)+23 hours.

---

<div class="post-metadata">

**Author:** ![toms1234](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@toms1234](https://forum.bubble.io/u/toms1234)\
**Post date:** [June 23, 2021, 1:42pm UTC](https://forum.bubble.io/t/add-a-lifetime-to-a-post/157015/3 "2021-06-23T13:42:40Z")

</div>

Hey Josh, i need to start with “created post”

So Created post \< current time ???
