# HOW CAN I get weekday? sunday, monday

**URL:** <https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [January 10, 2021, 5:28am UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318 "2021-01-10T05:28:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [January 10, 2021, 5:28am UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/1 "2021-01-10T05:28:04Z")

</div>

How can I get weekday? sunday, monday…

---

<div class="post-metadata">

**Author:** ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)\
**Post date:** [January 10, 2021, 5:58am UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/2 "2021-01-10T05:58:44Z")

</div>

you mean current week day?

---

<div class="post-metadata">

**Author:** ![gobassky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gobassky/32/77019_2.png) [@gobassky](https://community.thunkable.com/u/gobassky)\
**Post date:** [January 10, 2021, 6:21am UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/3 "2021-01-10T06:21:14Z")

</div>

make a list of text: [‘monday’,‘tuesday’, … , ‘sunday’]

call device\>current “day of the week”, and use the resulting number as and index to the list you defined.

---

<div class="post-metadata">

**Author:** ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)\
**Post date:** [January 10, 2021, 8:09am UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/4 "2021-01-10T08:09:02Z")

</div>

use apis 🕶

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [January 10, 2021, 11:49am UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/5 "2021-01-10T11:49:47Z")

</div>

Idon’t know what you mean…

---

<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:** [January 10, 2021, 12:34pm UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/6 "2021-01-10T12:34:30Z")

</div>

When you say

> [@jumalcom222](#):
>
> How can I get weekday? sunday, monday…

Which do you mean:

1. Current Day of the week?
2. Day of week for a particular date other than the current day (past or present)?
3. List of names of days of the week

For #1, you can use the device blocks:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/87e09f7b187ed65775cc50186ceac178363e98e1.png)

For #2, Thunkable does not have that feature, but as @eko.devs.apploroceo indicated, there may be a [Web API](https://docs.thunkable.com/web-api) you can use. That is a fairly advanced task.

For #3

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/b/4b1bb3d8cc7ba6bd9b34096d7a42cef3e3e45a47.png)

---

<div class="post-metadata">

**Author:** ![eko.devs.apploroceo](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eko.devs.apploroceo/32/93147_2.png) [@eko.devs.apploroceo](https://community.thunkable.com/u/eko.devs.apploroceo)\
**Post date:** [January 10, 2021, 1:08pm UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/7 "2021-01-10T13:08:02Z")

</div>

Do some read watch play around if u want help first search community and if u dnt find any helpful topics ask us

---

<div class="post-metadata">

**Author:** ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)\
**Post date:** [January 10, 2021, 1:46pm UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/8 "2021-01-10T13:46:48Z")

</div>

The “current \> day of the week” block returns a value from 1 to 7:

1 is Sunday  
2 is Monday  
3 is Tuesday  
4 is Wednesday  
5 is Thursday  
6 is Friday  
7 is Saturday

So all you need to do is create a local table to translate values to weekday names and use them in your app.

K

---

<div class="post-metadata">

**Author:** ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)\
**Post date:** [January 10, 2021, 1:53pm UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/9 "2021-01-10T13:53:36Z")

</div>

Take a look at this: [Thunkable](https://x.thunkable.com/projects/5fc14d693cc2e700111f92fc/project/properties/designer)

---

<div class="post-metadata">

**Author:** ![gobassky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gobassky/32/77019_2.png) [@gobassky](https://community.thunkable.com/u/gobassky)\
**Post date:** [January 10, 2021, 1:56pm UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/10 "2021-01-10T13:56:46Z")

</div>

Exactly what @Deluxe described. Just that I mentioned the use of a list of text instead of local table.

 ![weekdays](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7f4dedbceab93baed7707a1fe1a9ae1f1fbeb547.png)

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [January 10, 2021, 2:07pm UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/11 "2021-01-10T14:07:30Z")

</div>

I solved the problem by your good tip… Thanks

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1b0618ca2488f3b0302d213e226b24e5be273195.png)

---

<div class="post-metadata">

**Author:** ![gobassky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/gobassky/32/77019_2.png) [@gobassky](https://community.thunkable.com/u/gobassky)\
**Post date:** [January 10, 2021, 2:50pm UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/12 "2021-01-10T14:50:55Z")

</div>

Nice !! many ways to skin a cat… The fun part apart from solving the problem is to also improve the elegance of the solution. You may want to consider calling the “day of week” block only once, because any more blocks used costs time resources in the code.

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [January 10, 2021, 6:46pm UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/13 "2021-01-10T18:46:14Z")

</div>

I searched the methods in this community but…

Finally I found the easy method… See below my method…

---

<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:30pm UTC](https://community.thunkable.com/t/how-can-i-get-weekday-sunday-monday/1043318/14 "2024-11-08T13:30:54Z")

</div>


