How can I check that a day has passed?

I try to make the data automatically update after a day.
If it’s the next day when I open the app, I need to show the right data for that day.
How can I automatically check the next day and update the data?

Use stored-variable. When you start the application, check which date is saved in this variable.