# create weekday based on create date

**URL:** <https://community.hubspot.com/t/create-weekday-based-on-create-date/90300>\
**Category:** CRM\
**Tags:** professional\
**Created:** [September 22, 2023, 5:38pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300 "2023-09-22T17:38:38Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSchmidt\_Klimeo](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@MSchmidt\_Klimeo](https://community.hubspot.com/u/MSchmidt_Klimeo)\
**Post date:** [September 22, 2023, 5:38pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/1 "2023-09-22T17:38:38Z")

</div>

Hello,

I want to create a weekday based on the create day. Can this be done by a workflow or any other solution?

Thanks, Magnus

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [September 22, 2023, 5:53pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/2 "2023-09-22T17:53:09Z")

</div>

Hi [@MSchmidt\_Klimeo](https://community.hubspot.com/t5/user/viewprofilepage/user-id/636036),

Without Operations Hub Professional, this is not possible natively. With Operations Hub Professional, this can be achieved with a simple custom code action: [Workflows | Custom Code Actions - HubSpot docs](https://developers.hubspot.com/docs/api/workflows/custom-code-actions)

If you have this license, let me know, happy to share the code. I’ve worked on something very similar before.

Best regards!

---

<div class="post-metadata">

**Author:** ![MSchmidt\_Klimeo](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@MSchmidt\_Klimeo](https://community.hubspot.com/u/MSchmidt_Klimeo)\
**Post date:** [September 22, 2023, 5:56pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/3 "2023-09-22T17:56:23Z")

</div>

Hi, “Only” Sales & Marketing Hub Enterprise

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [September 22, 2023, 6:11pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/4 "2023-09-22T18:11:13Z")

</div>

Hi [@MSchmidt\_Klimeo](https://community.hubspot.com/t5/user/viewprofilepage/user-id/636036), in that case you would have to try to solve this through a third-party solution like Zapier. Natively, it’s not possible.

---

<div class="post-metadata">

**Author:** ![RSmith95](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@RSmith95](https://community.hubspot.com/u/RSmith95)\
**Post date:** [June 18, 2024, 9:55pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/5 "2024-06-18T21:55:14Z")

</div>

Hi @karstenkoehler could you share this code with me you mentioned in this thread? I just got operations hub and want to have a workflow that will give me day of the week.

---

<div class="post-metadata">

**Author:** ![Beka](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/beka/32/79266_2.png) [@Beka](https://community.hubspot.com/u/Beka)\
**Post date:** [January 16, 2024, 7:11pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/6 "2024-01-16T19:11:44Z")

</div>

I am looking to do this same thing but in operations hub. Could you share the code?

(I am actually trying to formate a date to be plus 7 weedays from date provided, but they only have days, not weekdays available. So thought I could branch based on day of the week and then set separate formater steps. If you know of a better solution, I’d love to hear it!)

Thanks!

---

<div class="post-metadata">

**Author:** ![bendonahower](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bendonahower/32/50849_2.png) [@bendonahower](https://community.hubspot.com/u/bendonahower)\
**Post date:** [November 20, 2024, 7:31pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/7 "2024-11-20T19:31:06Z")

</div>

Do you have operations Hub Pro? If so this is quite possible.

Here’s a blog post that we wrote about how to create a day of the week property and then assign leads based upon that day of the week. [How to Assign Contacts by the Day of the Week in HubSpot](https://www.noboundsdigital.com/blog/how-to-assign-contacts-by-the-day-of-the-week-in-hubspot)

It’s not quite your use case but you’ll get where I’m coming from conceptually. If you want some help implementing the specifically for you shoot me an email [ben@noboundsdigital.com](mailto:ben@noboundsdigital.com) or schedule a quick call [https://www.noboundsdigital.com/meetings/bendonahower/15-minutes](https://www.noboundsdigital.com/meetings/bendonahower/15-minutes) and we can work out a quick project.

---

<div class="post-metadata">

**Author:** ![Antonko](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@Antonko](https://community.hubspot.com/u/Antonko)\
**Post date:** [September 9, 2025, 4:20pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/8 "2025-09-09T16:20:43Z")

</div>

You can get the week number using a calculated field from unix time. If needed, add timezone and daylight saving adjustments. You can also use an IF statement to replace 1 = Monday, and so on.

Example:  
“((round\_down([properties.createdate]/86400000,0)+4)/7-round\_down((round\_down([properties.createdate]/86400000,0)+4)/7,0))\*7”

---

<div class="post-metadata">

**Author:** ![Victor\_Becerra](https://avatars.discourse-cdn.com/v4/letter/v/87869e/32.png) [@Victor\_Becerra](https://community.hubspot.com/u/Victor_Becerra)\
**Post date:** [September 9, 2025, 4:29pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/9 "2025-09-09T16:29:50Z")

</div>

Hi @Antonko

Thank you for contributing to our community! We appreciate your post and have kept it live, but adding a bit more detail would make it even more helpful to others.  
It would be great to see step-by-step instructions on implementing this solution.

Thanks, Victor

---

<div class="post-metadata">

**Author:** ![Beka](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/beka/32/79266_2.png) [@Beka](https://community.hubspot.com/u/Beka)\
**Post date:** [September 9, 2025, 4:54pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/10 "2025-09-09T16:54:01Z")

</div>

Thanks so much for this! **I changed it to a string property and was able to have the output be the day of the week.** Also I did have to change to +3 to be accurate.  
if((((round\_down(([properties.createdate] / 86400000), 0) + 3) - (7 \* round\_down(((round\_down(([properties.createdate] / 86400000), 0) + 3) / 7), 0))) == 0), “Monday”, if((((round\_down(([properties.createdate] / 86400000), 0) + 3) - (7 \* round\_down(((round\_down(([properties.createdate] / 86400000), 0) + 3) / 7), 0))) == 1), “Tuesday”, if((((round\_down(([properties.createdate] / 86400000), 0) + 3) - (7 \* round\_down(((round\_down(([properties.createdate] / 86400000), 0) + 3) / 7), 0))) == 2), “Wednesday”, if((((round\_down(([properties.createdate] / 86400000), 0) + 3) - (7 \* round\_down(((round\_down(([properties.createdate] / 86400000), 0) + 3) / 7), 0))) == 3), “Thursday”, if((((round\_down(([properties.createdate] / 86400000), 0) + 3) - (7 \* round\_down(((round\_down(([properties.createdate] / 86400000), 0) + 3) / 7), 0))) == 4), “Friday”, if((((round\_down(([properties.createdate] / 86400000), 0) + 3) - (7 \* round\_down(((round\_down(([properties.createdate] / 86400000), 0) + 3) / 7), 0))) == 5), “Saturday”, “Sunday”))))))  
For context for others: this is using a custom calculations property, not the operations hub or a workflow  
_Chatgpt was used to refine this calculation_

---

<div class="post-metadata">

**Author:** ![LKane5](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lkane5/32/211034_2.png) [@LKane5](https://community.hubspot.com/u/LKane5)\
**Post date:** [May 5, 2026, 10:26am UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/11 "2026-05-05T10:26:38Z")

</div>

This is fantastic, thank you so much for sharing - a brilliant way to solve an irritating problem!

---

<div class="post-metadata">

**Author:** ![bendonahower](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bendonahower/32/50849_2.png) [@bendonahower](https://community.hubspot.com/u/bendonahower)\
**Post date:** [September 9, 2025, 4:38pm UTC](https://community.hubspot.com/t/create-weekday-based-on-create-date/90300/12 "2025-09-09T16:38:05Z")

</div>

Do you have Data Hub (formerly Operations Hub) Pro? If so, this can be done. It’s pretty quick, so if you need no frills day of the week, it would be \< $1000. Email me with the details for a quote, [ben@noboundsdigital.com](mailto:ben@noboundsdigital.com). You could also give ChatGPT / Claude Code a shot. There is a sporting chance that it would spit out the code.
