# Automatically set date property

**URL:** <https://community.hubspot.com/t/automatically-set-date-property/76216>\
**Category:** CRM\
**Tags:** workflows\
**Created:** [March 1, 2023, 4:02am UTC](https://community.hubspot.com/t/automatically-set-date-property/76216 "2023-03-01T04:02:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MTrudel](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@MTrudel](https://community.hubspot.com/u/MTrudel)\
**Post date:** [March 1, 2023, 4:02am UTC](https://community.hubspot.com/t/automatically-set-date-property/76216/1 "2023-03-01T04:02:17Z")

</div>

Hi,

I need to create an expected closing date which is by default 90 days after the deals create date.

Basically:  
If create date is known, set DSO based closing date to (create date + 90 days).

How can I manage to do this?

Thanks!

---

<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:** [March 1, 2023, 5:25am UTC](https://community.hubspot.com/t/automatically-set-date-property/76216/2 "2023-03-01T05:25:50Z")

</div>

Hi @MTrudel,

The options that you have here depend on your subscription.

If you have Operations Hub Professional, you can use a Format data workflow action to run this calculation: [https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Set-a-date-property-as-quot-x-days-after-quot-day-of-step/m-p/728710/highlight/true#M7393](https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Set-a-date-property-as-quot-x-days-after-quot-day-of-step/m-p/728710/highlight/true#M7393)

Without Operations Hub Professional, unfortunately, HubSpot doesn’t support adding a number of days to a date property. [Calculcation properties](https://knowledge.hubspot.com/crm-setup/create-calculation-properties) (which would be included in your Professional subscription) don’t allow adding a number of days to a date. I would expect this to be added soon but it’s not available yet.

So without Operations Hub Professional, a third-party solution would be needed, e.g. Zapier. You would trigger a Zapier workflow of an event in HubSpot (in your case the fact that a deal was created) and then execute the calculation outside of HubSpot. Other users have described this workaround in a lot of detail, see for example [this explanation](https://community.hubspot.com/t5/Lists-Lead-Scoring-Workflows/Set-a-date-property-as-quot-x-days-after-quot-day-of-step/m-p/365633/highlight/true#M4205) by @Arlene. (Thank you for that!)

Another option would be a workflow that enrolls deals based on _Close date_, waits for a delay of 90 days and then date stamps your _Close date_. The downside of this solution is that the _Close date_ will only be available after the 90 day wait time.

Best regards!

---

<div class="post-metadata">

**Author:** ![MTrudel](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@MTrudel](https://community.hubspot.com/u/MTrudel)\
**Post date:** [March 1, 2023, 1:11pm UTC](https://community.hubspot.com/t/automatically-set-date-property/76216/3 "2023-03-01T13:11:43Z")

</div>

Thanks! It’s unfortunate it’s not in the default possibilities, but the Zappier workaround should do it!

---

<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:** [February 26, 2024, 12:47pm UTC](https://community.hubspot.com/t/automatically-set-date-property/76216/4 "2024-02-26T12:47:57Z")

</div>

Hi @MTrudel,

Since my first reply, HubSpot expanded on the functionalities of calculation properties: [Create calculation and rollup properties](https://knowledge.hubspot.com/properties/create-calculation-properties)

This can now be easily achieved with such a property, see this example that calculates a date 30 days after the record create date:

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/f/9f6d28b35bb01a1b931de75cc9aa86bfd20ddac8.png)

The number of days is the first number in brackets. The rest of the numbers are there to calculate the amount of milliseconds as that’s the unit HubSpot uses here.

If you want to calculate a date before, simply switch the + for a - sign.

Best regards!
