The figure is a block that you can find the interval between the current date and a specific date in the App Inventor. Is there such a block in thunkable? I looked up, but there was no. So is it impossible to compute this in thunkable?
I’m making an app for memorizing English words.
I have studied some words.
I want to see this word automatically again in 30 days.
To do that
I must first be able to calculate 30 days from today’s date.
I don’t know how.
And thirty days later, the thunkable compares to the date that the person is supposed to review today, and if yes, it shows the words we studied today.
To implement this, I want to know how to find the date after adding a specific day in today’s day. And I want to know how to compare dates. Find the distance between two dates.
I planned.
If you study a word today, you will have a plus 30 on today’s date.
Store this date plus 30 days in your local storage.
And every day when the app is opened, if a date like today’s date is in local storage, it reads the word that is the value recorded in the key.
I want to know the knowledge needed to implement this.
First of all, since February is an especially short month, it is
normally better to consider January and February the 13th and 14th
months of the previous year. So first, if the month is 1 or 2, then
you add 12 to the month and subtract 1 from the year. Then the day is
365 * year + year/4 - year/100 + year/400 + date + (153 * month+8)/5
where all of the divisions are rounded DOWN to the nearest integer.
I would be grateful if you could show me what you said as a block of thunkable. I do not understand well.
What I don’t really understand is that thunkable is a successor to App Inventor. By the way, thunkable has removed nice and convenient features. Now this is also an App Inventor, which can be easily obtained.
There are math functions in Thunkable so it would require taking each of the expressions and converting them to blocks. So you would need to create blocks for 365*year and for year/4 and for each other expression above. Then use the math + and – blocks to combine everything.
If you need help, post a screenshot of what you’ve tried.
Thank you for replying. Yes it is an old post but now I am having the same problem and I have followed these instruction but it didn’t produce intended results. I want someone to look at my blocks to guide me what is it that I am doing wrong?
Then here it is, change the day to date in your second date input, and you need two inputs to get the from and to date and months and months come in numbers not Feb or Jan. Sorry for editing too much.