Hi everyone,
even though I entered tomorrow's date, a label and an image are already displayed today. What am I doing wrong?
Regards
Nicola
Hi everyone,
even though I entered tomorrow's date, a label and an image are already displayed today. What am I doing wrong?
Regards
Nicola
Only when the date is August 26, 2025, the label and image should be displayed..instead it displays them already now
You are doing something illogical.
First you load a Label.Text from a Date Picker.
Then you throw away its contents and load it instead from Now + 1 day.
Maybe you wanted to store the Date Picker date + 1 instead of Now + 1?
Actually, loading from a date picker and throwing away the content didn't make sense. However, the fact remains that the actions are executed one day earlier.
Where is the code that compares TinyDB against the current date and decides to do the action?
Here?
So you were adding 1 to the date twice, once when you set it up into TinyDB, then again when you did the comparison in Screen Initialize?
How careless! In fact, I was adding a day twice. In this case, however, it makes the comparison and doesn't perform the action since today's date doesn't match August 27th.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.