How do I check if a day passed?

I want add a feature (button) that will work only one time per day.

Is that every 24 hours from a previous set time, or just when you move from one calendar day to another?

Regardless, the clock component is your friend for this.

The laziest way is to add a TinyDB tag LastRunDate, where you store the Clock formatted current date after using the feature.

Before using the feature, check if the current date hasn't already been stored under that tag.

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