# How to save daily data in a local storage ? And how to make the app recognize its same day and don't overwrite it?

**URL:** <https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545>\
**Category:** Questions about Thunkable X\
**Created:** [April 17, 2025, 7:37am UTC](https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545 "2025-04-17T07:37:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![acrh2025wtbqik](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@acrh2025wtbqik](https://community.thunkable.com/u/acrh2025wtbqik)\
**Post date:** [April 17, 2025, 7:37am UTC](https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545/1 "2025-04-17T07:37:26Z")

</div>

Hi!  
I’m currently developing an App where users must give their rating on health questions, example stress levels. So I want them to check-in their rating everyday and that to be stored in a local data storage in Thunkable.

I manage to make a data storage and it’s 7 questions (made as column) and the row (should be days). I tried to make the app create new row in data storage for every new day and the rating for that day saves according to the row number.

Example:  
User X start using the App 15 April 2025 (Row 1), 16 April (App create new row, now data is written from Rating tool to Row 2), 17 April (App create new row, now data is written from Rating tool to Row 3) and so its going…

I will also have a statistic page where the user should could compare the results over time and between 2 dates.

I appreciate if someone could help me figure out how to figure this out!

Best Regards Ali

---

<div class="post-metadata">

**Author:** ![Goldking](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/goldking/32/165073_2.png) [@Goldking](https://community.thunkable.com/u/Goldking)\
**Post date:** [April 17, 2025, 9:55am UTC](https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545/2 "2025-04-17T09:55:00Z")

</div>

Hi,  
probably you have to create your template with layout ,contanier and label to move data from your database to tamplate to see all the data you want .  
Or you can use the component Data Viewer to show data if you can use list layout

---

<div class="post-metadata">

**Author:** ![Goldking](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/goldking/32/165073_2.png) [@Goldking](https://community.thunkable.com/u/Goldking)\
**Post date:** [April 17, 2025, 1:33pm UTC](https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545/3 "2025-04-17T13:33:20Z")

</div>

But did you manage to create the database ? Show your relevant block about save and retrive data

---

<div class="post-metadata">

**Author:** ![acrh2025wtbqik](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@acrh2025wtbqik](https://community.thunkable.com/u/acrh2025wtbqik)\
**Post date:** [April 18, 2025, 8:02am UTC](https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545/4 "2025-04-18T08:02:30Z")

</div>

Hi thanks for your answer. But I really don’t get it how to fix it.  
Here I upload how rating is saved to databas, and the databas structure.

 ![Screenshot 2025-04-18 at 09.59.42](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/a/da82fabc2d7de1fb55cbc8cdae9abfeda24aa7ba.png)  
 ![Screenshot 2025-04-18 at 10.00.14](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/0/503f22aa3d8af60a0e440e5f9b5c460fe018554d.png)

---

<div class="post-metadata">

**Author:** ![Goldking](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/goldking/32/165073_2.png) [@Goldking](https://community.thunkable.com/u/Goldking)\
**Post date:** [April 18, 2025, 2:07pm UTC](https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545/5 "2025-04-18T14:07:21Z")

</div>

Hi, first of all I suggest you watch tutorial about component that you can find in the docs, very helpful.

This is one way to optimize your blocks

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/c/ecdf5fe0bb685a6abab4698d603679f411a9b37e.png)

Also for create

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b7a0d60110f455e23534a9bb006ce23813c97ba0.png)

This can be one way to show data in your app

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/e/9eea07722f8822e8b10b03efabb6ad279c4e431d.png)

But there are a lot of way , you have to find the best for you. You can use a single label like in the pic, you can use a list view, you can create a form where show data and so on

---

<div class="post-metadata">

**Author:** ![acrh2025wtbqik](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@acrh2025wtbqik](https://community.thunkable.com/u/acrh2025wtbqik)\
**Post date:** [April 23, 2025, 8:07am UTC](https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545/6 "2025-04-23T08:07:30Z")

</div>

Hi! Thanks a lot for your answers, Appericiate it!

But I wonder how to manage that the app recognise it’s a new day and automatically create a new row in table and allows the answers for that day to go to the new row? So it also doesn’t mess upp yesterday’s values in the table?

---

<div class="post-metadata">

**Author:** ![Goldking](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/goldking/32/165073_2.png) [@Goldking](https://community.thunkable.com/u/Goldking)\
**Post date:** [April 23, 2025, 7:59pm UTC](https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545/7 "2025-04-23T19:59:50Z")

</div>

Hi, now I don’t remember if there is another way to catch the date but you can use this core block to make date and save to database.  
👉🏻 [Here](https://docs.thunkable.com/blocks/blocks/device) 👈🏻

When the app starts you have to get the last row and verify if date value is equal to the current day or not

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 22, 2025, 8:00pm UTC](https://community.thunkable.com/t/how-to-save-daily-data-in-a-local-storage-and-how-to-make-the-app-recognize-its-same-day-and-dont-overwrite-it/3748545/8 "2025-07-22T20:00:57Z")

</div>

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