# Glitch With Determining Label's Text

**URL:** https://community.thunkable.com/t/glitch-with-determining-labels-text/3361340
**Category:** Issues / Bugs
**Tags:** labels, dates
**Created:** [November 22, 2024, 5:45am UTC](https://community.thunkable.com/t/glitch-with-determining-labels-text/3361340 "2024-11-22T05:45:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ant\_1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ant_1/32/183393_2.png) [@ant\_1](https://community.thunkable.com/u/ant_1)
#### Post date: [November 22, 2024, 5:45am UTC](https://community.thunkable.com/t/glitch-with-determining-labels-text/3361340/1 "2024-11-22T05:45:26Z")

</div>

Hey guys, hope all is well.  
I have encountered a glitch where when I try determine the label’s text, the screen preview doesn’t load. I don’t know why but it just doesn’t work. Here is my code and maybe something is wrong?

BLOCKS:

 ![Screen Shot 2024-11-22 at 9.51.14 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/eeb28c9c03d169ba0bd93b50e7bd7c914c32db29.png)

Please help! Thanks!

---

<div class="post-metadata">

### Author: ![ant\_1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ant_1/32/183393_2.png) [@ant\_1](https://community.thunkable.com/u/ant_1)
#### Post date: [November 22, 2024, 6:00am UTC](https://community.thunkable.com/t/glitch-with-determining-labels-text/3361340/2 "2024-11-22T06:00:53Z")

</div>

Nevermind. I fixed it.  
For those who are wondering, the device block to determine the date or time cannot be incorporated into the text types of blocks, which causes the glitch. So you have to do it manually like this.

 ![Screen Shot 2024-11-22 at 10.00.20 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/9/494d912d4783b8d58864b5cc95cc17bfbe9c909f.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: [November 22, 2024, 6:18am UTC](https://community.thunkable.com/t/glitch-with-determining-labels-text/3361340/3 "2024-11-22T06:18:21Z")

</div>

There’s a much easier way to do that involving a list of values (“Monday”, “Tuesday”, etc.) and taking the list item # of that list to determine the day of the week. Same for the months, 1 through 12.

---

<div class="post-metadata">

### Author: ![ant\_1](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ant_1/32/183393_2.png) [@ant\_1](https://community.thunkable.com/u/ant_1)
#### Post date: [November 22, 2024, 6:20am UTC](https://community.thunkable.com/t/glitch-with-determining-labels-text/3361340/4 "2024-11-22T06:20:26Z")

</div>

yeah i just read the docs. you should create a data source. its fine, still works.

also do you know if the current hour block is in 24 hour format

---

<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: [November 22, 2024, 6:22am UTC](https://community.thunkable.com/t/glitch-with-determining-labels-text/3361340/5 "2024-11-22T06:22:38Z")

</div>

You can set the time format.

Here’s what I was describing:

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