This can be done two ways, either using scheduled, daily recurring workflow (available in Operations Hub Professional) or using a today’s date property.
With the former option, you’d enroll all records where date 1 and date 2 are known and set up the workflow to run every day.
With the latter option, you’d re-enroll the record whenever today’s date changes (re-enrollment based on today’s day = known).
You would then create a branch to check the following:
Date 1 is more than 0 days from now: Set property value to ‘Before’
Date 1 is more than 0 days ago and Date 2 is more than 0 from now: Set property value to ‘Now’
Date 2 is more than 0 days ago: Set property value to 'Before
For the part behind the colon, use the ‘Set property value’ workflow action.
You can select an object type(s) to assign it to and the property will be added to all objects of that type. It updates every night at 12:00 AM according to your HubSpot timezone. So you don’t have to worry about updating it yourself!
Let me know if you have any questions. I’d be happy to answer them.
Best,
-David Staat