# Comparison less than

**URL:** <https://community.thunkable.com/t/comparison-less-than/1368618>\
**Category:** Questions about Thunkable X\
**Created:** [June 28, 2021, 6:50pm UTC](https://community.thunkable.com/t/comparison-less-than/1368618 "2021-06-28T18:50:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![meer51](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/meer51/32/95070_2.png) [@meer51](https://community.thunkable.com/u/meer51)\
**Post date:** [June 28, 2021, 6:50pm UTC](https://community.thunkable.com/t/comparison-less-than/1368618/1 "2021-06-28T18:50:56Z")

</div>

I am working on an app that will calculate age with two dates. The comparison instruction lees than \< is taking exactly the opposite route to the expected route. in the pic curr-day minus d-input1 is producing a result greater than 30. what is wrong. I have spent so much time trying to get the app to work properly. I have separated the starting block here. What is wron

 ![compare-reverse](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1b276b676d599e8d0a99a90902ad953bd5912b76.png)  
g?

---

<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:** [June 28, 2021, 7:17pm UTC](https://community.thunkable.com/t/comparison-less-than/1368618/2 "2021-06-28T19:17:46Z")

</div>

I don’t think you can compare date text strings using mathematical symbols. Most likely, you need to use an API to determine which date comes first.

The \< or \> symbols will evaluate text _alphabetically_.

---

<div class="post-metadata">

**Author:** ![meer51](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/meer51/32/95070_2.png) [@meer51](https://community.thunkable.com/u/meer51)\
**Post date:** [June 28, 2021, 8:03pm UTC](https://community.thunkable.com/t/comparison-less-than/1368618/3 "2021-06-28T20:03:33Z")

</div>

Thank you for quick response.

---

<div class="post-metadata">

**Author:** ![mimostel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mimostel/32/107661_2.png) [@mimostel](https://community.thunkable.com/u/mimostel)\
**Post date:** [June 28, 2021, 8:10pm UTC](https://community.thunkable.com/t/comparison-less-than/1368618/4 "2021-06-28T20:10:19Z")

</div>

im just a beginner, but i think you can use “seconds since 1970” block for each date… difference between those 2 will get you age in seconds… than get year, month, day from seconds … 🤔

---

<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 28, 2021, 8:48pm UTC](https://community.thunkable.com/t/comparison-less-than/1368618/5 "2021-06-28T20:48:51Z")

</div>

I tried this and it works **correctly**.

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

You need to convert the text label to number by multiplying it by 1 or adding 0 to it and the comparison will yield correct results

---

<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, 1:20pm UTC](https://community.thunkable.com/t/comparison-less-than/1368618/6 "2024-11-08T13:20:01Z")

</div>


