# Store a date at a specific time and add 7 days

**URL:** <https://community.homey.app/t/store-a-date-at-a-specific-time-and-add-7-days/76049>\
**Category:** Flows\
**Created:** [February 5, 2023, 2:31pm UTC](https://community.homey.app/t/store-a-date-at-a-specific-time-and-add-7-days/76049 "2023-02-05T14:31:13Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [February 6, 2023, 2:08pm UTC](https://community.homey.app/t/store-a-date-at-a-specific-time-and-add-7-days/76049/10 "2023-02-06T14:08:52Z")

</div>

Maybe you can do something in HomeyScript, here is an example:

> [@\[APP\]\[Pro\] HomeyScript](https://community.homey.app/t/app-pro-homeyscript/854/72):
>
> Here is some code. All data will be given as a tag. De tags you don’t need, just add // in front of ‘await tag’. This will give e.g //await tag(‘CurrentDay’, currentDay); and this tag will not be available var date = new Date(); date.setDate(date.getDate()); const currentDay = date.getDate(); await tag('CurrentDay', currentDay); console.log('1 CurrentDay is: ' +currentDay); const currentMonth = date.getMonth() +1; // getMonth() returns month from 1 to 12 await tag('CurrentMonth', currentMonth)…

---

_[View the full topic](https://community.homey.app/t/store-a-date-at-a-specific-time-and-add-7-days/76049)._
