Help! Expire date

Hello, wix community,
I want to set expire date to my database item, like we use this in Event app. I don’t know how to manage my date and time columns that should hide or delete my expired items . Can anyone help with this?

Create a DateTime field or decide by a rule that after 14 days after they have been created they should not be visible. This is only doable through code.

Read about dates using Stackoverflow to learn how to compare dates and then implement that as a filter in your datasets.

It is also possible to automatically delete an entry in the database after certain days using automations and wix code to remove old and unwanted data… :wink:

Where I should write a code, on dynamic page? Can you give an example of the rule?