# Set date 7 days from now but avoid weekends for HubSpot task

**URL:** <https://community.make.com/t/set-date-7-days-from-now-but-avoid-weekends-for-hubspot-task/76507>\
**Category:** Questions\
**Tags:** format-date, hubspot\
**Created:** [March 25, 2025, 1:49pm UTC](https://community.make.com/t/set-date-7-days-from-now-but-avoid-weekends-for-hubspot-task/76507 "2025-03-25T13:49:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stuart\_Dixon](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@Stuart\_Dixon](https://community.make.com/u/Stuart_Dixon)\
**Post date:** [March 25, 2025, 1:49pm UTC](https://community.make.com/t/set-date-7-days-from-now-but-avoid-weekends-for-hubspot-task/76507/1 "2025-03-25T13:49:36Z")

</div>

I am trying to set a date which is 7 days from now but if that lands on a weekend then return the following Monday. Basically I am trying to set a HubSpot task due date but don’t want it to land on a weekend.

---

<div class="post-metadata">

**Author:** ![Stoyan\_Vatov](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Stoyan\_Vatov](https://community.make.com/u/Stoyan_Vatov)\
**Post date:** [March 25, 2025, 3:46pm UTC](https://community.make.com/t/set-date-7-days-from-now-but-avoid-weekends-for-hubspot-task/76507/2 "2025-03-25T15:46:51Z")

</div>

Hey Stuart,

check what day today is with formatDate(). If its Saturday, add 9 days, if its Sunday, add 8 days and if its not either, add 7 days.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [April 9, 2025, 1:31pm UTC](https://community.make.com/t/set-date-7-days-from-now-but-avoid-weekends-for-hubspot-task/76507/3 "2025-04-09T13:31:51Z")

</div>


