# Set variable for Date and Time as variable

**URL:** <https://community.homey.app/t/set-variable-for-date-and-time-as-variable/150858>\
**Category:** Flows\
**Created:** [February 9, 2026, 4:47pm UTC](https://community.homey.app/t/set-variable-for-date-and-time-as-variable/150858 "2026-02-09T16:47:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YSL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ysl/32/100259_2.png) [@YSL](https://community.homey.app/u/YSL)\
**Post date:** [February 9, 2026, 4:47pm UTC](https://community.homey.app/t/set-variable-for-date-and-time-as-variable/150858/1 "2026-02-09T16:47:16Z")

</div>

I am looking for the best approach for the following:  
I would like to manually initiate a flow that will ask and set text and number variables. This in order to set action start and stop based on the variable and text.

Ex: execute a flow based on (start) on date and time (variable previously defined, date, time, numerical value for the thermostat) to set the thermostat to XX value.  
Then based and on a second set of variables (stop) on date and time to set the thermostat on XX value

I was thinking of setting 6 variable  
START: StartDate, StartTime, StartThermostat(numerical)  
STOP: StopDate, StopTime, StopThermostat(numerical)

Any logical direction and suggestions will be very much appreciated.  
Our power distributor is returning credits for each kWh (about 5 times the initial cost - costs 0.11$ return for the same kWh 0.57$) saving during a peek event that the advertise a day in advance.
