# \[Solved\] How to store future dates in Thunkable X?

**URL:** <https://community.thunkable.com/t/solved-how-to-store-future-dates-in-thunkable-x/96717>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [June 8, 2019, 12:30am UTC](https://community.thunkable.com/t/solved-how-to-store-future-dates-in-thunkable-x/96717 "2019-06-08T00:30:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![b-rabbit](https://avatars.discourse-cdn.com/v4/letter/b/4bbf92/32.png) [@b-rabbit](https://community.thunkable.com/u/b-rabbit)\
**Post date:** [June 8, 2019, 12:30am UTC](https://community.thunkable.com/t/solved-how-to-store-future-dates-in-thunkable-x/96717/1 "2019-06-08T00:30:30Z")

</div>

Hi all,

I am wondering if it is possible to store a future date in Thunkable X. For example I have the block of code below which stores the current date in an airtable spreadsheet (format DD/MM/YYYY). Is it possible to get a future date. i.e. date = current date + 7 days. for example. I think this used to be easy with Thunkable classic as it had a clock component. In Thunakable X, I can only seem to find the get current date/time under the device menu.

Thanks in advance.

![date](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/0/e0a4ea506cf90fa73eb2d86baddc6ad05bffe9ef.png)

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [June 14, 2019, 12:29pm UTC](https://community.thunkable.com/t/solved-how-to-store-future-dates-in-thunkable-x/96717/2 "2019-06-14T12:29:56Z")

</div>

Hi there,

You would have to design a function to get a future date.  
If we imagine you only want to get dates 7 days in the future, you’d need to:

get how many days are in the current month  
add 7 to the current day of the month (call this result x)  
if x \> days in current month, subtract days in current month from x and add 1 to current month (to get date at beginning of next month)

You can find APIs that call a calendar function if that would be helpful to you. Check out actech’s replies in [this thread](http://community.thunkable.com/t/calendar-api-recommendations/36510/6?u=jane)

Thanks,  
Jane

---

<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:13pm UTC](https://community.thunkable.com/t/solved-how-to-store-future-dates-in-thunkable-x/96717/3 "2024-11-08T12:13:26Z")

</div>


