# Put day of week (Monday, Tuesday, etc.) in variable

**URL:** <https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230>\
**Category:** Questions & Help\
**Created:** [July 1, 2024, 6:55am UTC](https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230 "2024-07-01T06:55:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Howard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tim_howard/32/78979_2.png) [@Tim\_Howard](https://community.homey.app/u/Tim_Howard)\
**Post date:** [July 1, 2024, 6:55am UTC](https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230/1 "2024-07-01T06:55:29Z")

</div>

Is there a way (Homey Pro 2023) to add the current day of week to a variable that then can then be used in a flow?  
Monday, Tuesday, Wednesday, etc.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 1, 2024, 7:16am UTC](https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230/2 "2024-07-01T07:16:14Z")

</div>

Yes, see the Better Logic Library flowcards for Date formatting.

---

<div class="post-metadata">

**Author:** ![Tim\_Howard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tim_howard/32/78979_2.png) [@Tim\_Howard](https://community.homey.app/u/Tim_Howard)\
**Post date:** [July 1, 2024, 8:46am UTC](https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230/3 "2024-07-01T08:46:38Z")

</div>

Forgive my ignorance, I am new to Homey. Here is the card but it does not change the variable X. Not sure what I am doing wrong.

I want the text variable X to be the current day of the week, like Monday.

![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/3/c3fd9876ab9e5c300655d40a6506076f93b7fd1c.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 1, 2024, 12:38pm UTC](https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230/4 "2024-07-01T12:38:26Z")

</div>

Which flowcard is that?  
(I cannot see which it is exactly)

If its the “set variable to text” it should work.  
If its the “set variable to BLL expression”, remove the `{[]}`

---

<div class="post-metadata">

**Author:** ![Tim\_Howard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tim_howard/32/78979_2.png) [@Tim\_Howard](https://community.homey.app/u/Tim_Howard)\
**Post date:** [July 1, 2024, 9:53pm UTC](https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230/5 "2024-07-01T21:53:59Z")

</div>

The top card is “set variable to text”.  
The bottom card is “set variable to BLL expression”.

![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/5/45a27f173e772936cd6adc757b8793184e34030c.png)

Neither card sets the variable.

![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/144dfce212d47a565238a06f4552541d997d9f00.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 1, 2024, 11:12pm UTC](https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230/6 "2024-07-01T23:12:51Z")

</div>

🙂  
Those flowcards set the BLL variable, not the default Homey Variables 😉

---

<div class="post-metadata">

**Author:** ![Tim\_Howard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tim_howard/32/78979_2.png) [@Tim\_Howard](https://community.homey.app/u/Tim_Howard)\
**Post date:** [July 7, 2024, 8:55pm UTC](https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230/7 "2024-07-07T20:55:38Z")

</div>

Ahh, got it. Thanks!

For someone following this Thread later. You cannot create a variable in the Homey Varliable tab to use with the Basic Logic Library (BLL) App. Create the variable with the BLL flowcard. The variable will not show in the Homey list of variables but it is available to other flow cards.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 7, 2024, 11:16pm UTC](https://community.homey.app/t/put-day-of-week-monday-tuesday-etc-in-variable/112230/8 "2024-07-07T23:16:39Z")

</div>

Or

> ![Screenshot_20240708-011332_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/e/8e29fc421b68881a0fa005f1e204cea8b93e715d.jpeg)

> 

It’s mentioned at the app description 😉

> ![Screenshot_20240708-011515_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/9/c95fbaf7b214aeea2a1f160e298fd55a989442a1.jpeg)
