# Count days (date)

**URL:** <https://community.thunkable.com/t/count-days-date/2746406>\
**Category:** Questions about Thunkable X\
**Created:** [December 11, 2023, 1:21pm UTC](https://community.thunkable.com/t/count-days-date/2746406 "2023-12-11T13:21:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 11, 2023, 1:21pm UTC](https://community.thunkable.com/t/count-days-date/2746406/1 "2023-12-11T13:21:38Z")

</div>

Hi, I wanted to know if there is a way to count the days since a date… I was looking at some topics but I didn’t understand, I want the user to start counting the days, months, years, hours and minutes when they enter the application… Let it begin counting using the real-time date and time.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 11, 2023, 8:02pm UTC](https://community.thunkable.com/t/count-days-date/2746406/2 "2023-12-11T20:02:53Z")

</div>

It’s helpful if you link to topics you’ve read so that we know what to suggest. Here are a couple you might find helpful:

• [The calculation of two times](https://community.thunkable.com/t/the-calculation-of-two-times/1540784)  
• [Duration between hours on different days](https://community.thunkable.com/t/duration-between-hours-on-different-days/1662003)

If you get stuck, post a screenshot of the blocks or code you’ve tried and ask a specific question.

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 12, 2023, 10:59am UTC](https://community.thunkable.com/t/count-days-date/2746406/3 "2023-12-12T10:59:13Z")

</div>

I haven’t tried anything yet, I don’t even know where to start. I need to calculate the days, example: The person accessed the application for the first time on 12/12/2023. When the person accesses it again on 01/12/2024, it will have counted one month, understand? And so on, I want to count the days.

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 12, 2023, 1:38pm UTC](https://community.thunkable.com/t/count-days-date/2746406/4 "2023-12-12T13:38:01Z")

</div>

I managed to count the date, but there is a problem: Depending on the dates, the result is negative…

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

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 12, 2023, 7:07pm UTC](https://community.thunkable.com/t/count-days-date/2746406/5 "2023-12-12T19:07:01Z")

</div>

This is not the method used in either of those topics I linked to above. You need to go back and follow that advice.

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 14, 2023, 12:27am UTC](https://community.thunkable.com/t/count-days-date/2746406/6 "2023-12-14T00:27:14Z")

</div>

Sorry but I didn’t understand the content of those links you sent, I just want to know how to avoid negative numbers. How do I reverse them.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 14, 2023, 1:11am UTC](https://community.thunkable.com/t/count-days-date/2746406/7 "2023-12-14T01:11:51Z")

</div>

You use [absolute value](https://docs.thunkable.com/blocks/blocks/math#logarithmic-values). Or if (number) \< 0 then multiply (number) by -1.

---

<div class="post-metadata">

**Author:** ![luiz.primaz2ddpyu](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@luiz.primaz2ddpyu](https://community.thunkable.com/u/luiz.primaz2ddpyu)\
**Post date:** [December 14, 2023, 10:54am UTC](https://community.thunkable.com/t/count-days-date/2746406/8 "2023-12-14T10:54:37Z")

</div>

I got it, thank you

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 14, 2023, 5:49pm UTC](https://community.thunkable.com/t/count-days-date/2746406/9 "2023-12-14T17:49:53Z")

</div>

You’re welcome. You can mark a topic as solved by clicking the checkbox:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/12ae1374b98616c392fd26a6482ac35c8d79967f.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/d/6d70b75aed2d6ac9962ec1b532a84d84ef989e88.png)

---

<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:** [March 13, 2024, 5:50pm UTC](https://community.thunkable.com/t/count-days-date/2746406/10 "2024-03-13T17:50:26Z")

</div>

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