# \[Solved\] Get year from the Date Imput component

**URL:** <https://community.thunkable.com/t/solved-get-year-from-the-date-imput-component/318093>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [November 13, 2019, 1:10pm UTC](https://community.thunkable.com/t/solved-get-year-from-the-date-imput-component/318093 "2019-11-13T13:10:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickolas](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@nickolas](https://community.thunkable.com/u/nickolas)\
**Post date:** [November 13, 2019, 1:10pm UTC](https://community.thunkable.com/t/solved-get-year-from-the-date-imput-component/318093/1 "2019-11-13T13:10:00Z")

</div>

Hello, the problem I’m facing is that I want tho fill a form and for that I’ll need the age of the person, I’m trying to get by creating a variable for the actual year we’re in and another one with the year of the person’s birth year. The problem is to get the year of the person’s birth. Can anyone help me?  
Thanks.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [November 13, 2019, 2:22pm UTC](https://community.thunkable.com/t/solved-get-year-from-the-date-imput-component/318093/2 "2019-11-13T14:22:42Z")

</div>

Hi @nickolas

Why not just use the `get year` method for this component?

 ![get_year](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/9/c9b17ba16a222176aceb14c7ee1a38e368d7228f.png)

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [November 13, 2019, 3:13pm UTC](https://community.thunkable.com/t/solved-get-year-from-the-date-imput-component/318093/3 "2019-11-13T15:13:27Z")

</div>

@domhnallohanlon

- Will the above block push a popup with only option of selecting a year?

- Or it will return a segmented part (in this case, the year) from the picked date?

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [November 13, 2019, 3:26pm UTC](https://community.thunkable.com/t/solved-get-year-from-the-date-imput-component/318093/4 "2019-11-13T15:26:36Z")

</div>

It’s just the segmented part, as that’s what was asked for:

> [@nickolas](#):
>
> I’m trying to get by creating a variable for the actual year we’re in and another one with the year of the person’s birth year.

This is what it would look like with both variables:

 ![year_of_birth](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0fb1be5ba0dc2d69af6a6bcaf6ec5bd0149c9167.png)

---

<div class="post-metadata">

**Author:** ![nickolas](https://avatars.discourse-cdn.com/v4/letter/n/5e9695/32.png) [@nickolas](https://community.thunkable.com/u/nickolas)\
**Post date:** [November 13, 2019, 7:01pm UTC](https://community.thunkable.com/t/solved-get-year-from-the-date-imput-component/318093/5 "2019-11-13T19:01:33Z")

</div>

Thanks guys, I wasn’t doing it right because I put an previous button to open the data\_picker but now I did it right.

---

<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, 11:46am UTC](https://community.thunkable.com/t/solved-get-year-from-the-date-imput-component/318093/6 "2024-11-08T11:46:41Z")

</div>


