# Reset database field at midnight

**URL:** <https://forum.bubble.io/t/reset-database-field-at-midnight/199369>\
**Category:** Need help\
**Created:** [March 29, 2022, 5:53pm UTC](https://forum.bubble.io/t/reset-database-field-at-midnight/199369 "2022-03-29T17:53:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedrodsabugueiro](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pedrodsabugueiro/32/202699_2.png) [@pedrodsabugueiro](https://forum.bubble.io/u/pedrodsabugueiro)\
**Post date:** [March 29, 2022, 5:53pm UTC](https://forum.bubble.io/t/reset-database-field-at-midnight/199369/1 "2022-03-29T17:53:31Z")

</div>

Hey everyone,  
I’m trying to get a database’s field to clear at midnight.  
To do so I 1st created a custom event that clears that given field. Then, I created the event "when current date/time formatted as hh:mm is 00:00 " \> trigger the custom event.

For some reason it’s not working.  
Could anybody help me?

Thank you

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [March 29, 2022, 6:28pm UTC](https://forum.bubble.io/t/reset-database-field-at-midnight/199369/2 "2022-03-29T18:28:26Z")

</div>

Hi there, @pedrodsabugueiro… are you familiar with backend workflows (which, by the way, can only be used when you are on a paid plan)? If you aren’t familiar with them (specifically, recurring events), do some searching (there is a lot of content out there) and get your learn on because a backend workflow is what you need here.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [June 7, 2022, 5:54pm UTC](https://forum.bubble.io/t/reset-database-field-at-midnight/199369/3 "2022-06-07T17:54:02Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
