# Today's Date Property

**URL:** <https://community.hubspot.com/t/todays-date-property/94275>\
**Category:** CRM\
**Tags:** professional\
**Created:** [November 17, 2023, 2:02pm UTC](https://community.hubspot.com/t/todays-date-property/94275 "2023-11-17T14:02:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maulpaurer](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@maulpaurer](https://community.hubspot.com/u/maulpaurer)\
**Post date:** [November 17, 2023, 2:02pm UTC](https://community.hubspot.com/t/todays-date-property/94275/1 "2023-11-17T14:02:33Z")

</div>

Hello,

I want to create a “Today’s Date” Property, that changes everyday, corresponding to the date of today.

I found some solutions that were created 3 years ago and don`t work anymore.  
Is there a solution that is working at the moment?

Thanks in advance!

---

<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:** [November 17, 2023, 2:03pm UTC](https://community.hubspot.com/t/todays-date-property/94275/2 "2023-11-17T14:03:27Z")

</div>

Hi @maulpaurer,

Which HubSpot subscription’s do you have? The only reliable solution, in my opinion, requires Operations Hub Professional.

---

<div class="post-metadata">

**Author:** ![maulpaurer](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@maulpaurer](https://community.hubspot.com/u/maulpaurer)\
**Post date:** [November 17, 2023, 2:08pm UTC](https://community.hubspot.com/t/todays-date-property/94275/3 "2023-11-17T14:08:10Z")

</div>

Thanks for the quick answer!  
I am on Sales Hub Enterprise

---

<div class="post-metadata">

**Author:** ![SDrattell](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@SDrattell](https://community.hubspot.com/u/SDrattell)\
**Post date:** [June 12, 2024, 3:42pm UTC](https://community.hubspot.com/t/todays-date-property/94275/4 "2024-06-12T15:42:21Z")

</div>

you can use a workflow with a custom python code

import os  
from datetime import datetime  
from hubspot import HubSpot  
from hubspot.crm.contacts import ApiException

def main(event):  
# Get today’s date  
today = datetime.today().strftime(‘%Y-%m-%dT%H:%M:%S’) # Format as ISO 8601 datetime string

# Return data that can be used in later actions  
return {  
“outputFields”: {  
“today”: today  
}  
}

# Lambda handler function  
def hubspot\_handler(event, context):  
try:  
# Call the main function  
result = main(event)  
return result  
except Exception as e:  
print(f"Error invoking main function: {e}")  
raise

# Optional: Test the handler locally  
if \_\_name\_\_ == “\_\_main\_\_”:  
event = {  
“object”: {“objectId”: “12345”},  
“inputFields”: {}  
}  
context = {}  
print(hubspot\_handler(event, context))

then make sure to add “today” as an output

you can use this action output and update a custom property or whatever you want.

---

<div class="post-metadata">

**Author:** ![DanaIrvine](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@DanaIrvine](https://community.hubspot.com/u/DanaIrvine)\
**Post date:** [July 10, 2024, 7:43pm UTC](https://community.hubspot.com/t/todays-date-property/94275/5 "2024-07-10T19:43:52Z")

</div>

Python isn’t even needed, I just set this up.

 ![JIrvine1_0-1720640564039.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/a/a631ed54b8ca7455f685832f87c3fac014167f2c.png)

---

<div class="post-metadata">

**Author:** ![DStaat](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dstaat/32/3537_2.png) [@DStaat](https://community.hubspot.com/u/DStaat)\
**Post date:** [February 7, 2024, 8:08pm UTC](https://community.hubspot.com/t/todays-date-property/94275/6 "2024-02-07T20:08:53Z")

</div>

Hey @maulpaurer,  
There’s an app called [Tick Tock Today](https://ecosystem.hubspot.com/marketplace/apps/sales/crm/ticktocktoday-1928474) that would accomplish this for you! You can select an object type(s) to have the today’s date property added to. It will update the property on each record of the type you select daily.

 ![DStaat_0-1707336500291.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/2/28bbac2bbbd9927cda043860a34af785477b0d61.png)

Let me know if you have any questions!  
Best,  
-David Staat
