# How can I do operations with dates?

**URL:** <https://community.thunkable.com/t/how-can-i-do-operations-with-dates/946957>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [November 2, 2020, 12:52pm UTC](https://community.thunkable.com/t/how-can-i-do-operations-with-dates/946957 "2020-11-02T12:52:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![preyescejudovi](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@preyescejudovi](https://community.thunkable.com/u/preyescejudovi)\
**Post date:** [November 2, 2020, 12:52pm UTC](https://community.thunkable.com/t/how-can-i-do-operations-with-dates/946957/1 "2020-11-02T12:52:06Z")

</div>

Goodnight. Apparently I didn’t find anything about what I need, so I decided to ask. I am programming an app where I need to add and subtract a few days from the dates that are chosen in the app. For example, today’s date I need to add 10 days to get other data from the app. And from today’s date also find the day 3 months before and 3 months later. But I can not do operations with dates. Can you help me please.? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![drted](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/drted/32/92694_2.png) [@drted](https://community.thunkable.com/u/drted)\
**Post date:** [November 2, 2020, 1:19pm UTC](https://community.thunkable.com/t/how-can-i-do-operations-with-dates/946957/2 "2020-11-02T13:19:32Z")

</div>

I have the same problem. I have worked around it. But I will unfortunately need to implement something along the lines of the calculation described at [https://en.wikipedia.org/wiki/Julian\_day#Converting\_Gregorian\_calendar\_date\_to\_Julian\_Day\_Number](https://en.wikipedia.org/wiki/Julian_day#Converting_Gregorian_calendar_date_to_Julian_Day_Number)

JDN = (1461 × (Y + 4800 + (M − 14)/12))/4 +(367 × (M − 2 − 12 × ((M − 14)/12)))/12 − (3 × ((Y + 4900 + (M - 14)/12)/100))/4 + D − 32075

I could not find a Web API with a datediff function. But I’ll keep watching this thread to see if someone has a better solution. 🤞

---

<div class="post-metadata">

**Author:** ![id.salazar88zrunh](https://avatars.discourse-cdn.com/v4/letter/i/c0e974/32.png) [@id.salazar88zrunh](https://community.thunkable.com/u/id.salazar88zrunh)\
**Post date:** [June 21, 2021, 2:28am UTC](https://community.thunkable.com/t/how-can-i-do-operations-with-dates/946957/3 "2021-06-21T02:28:25Z")

</div>

Hey @preyescejudovi do you found a solution to this?

I´m traying to do something similar

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [June 21, 2021, 6:43am UTC](https://community.thunkable.com/t/how-can-i-do-operations-with-dates/946957/4 "2021-06-21T06:43:56Z")

</div>

Get `seconds since 1970` and manipulate it with connected Google sheet

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:21pm UTC](https://community.thunkable.com/t/how-can-i-do-operations-with-dates/946957/5 "2024-11-08T12:21:49Z")

</div>


