# String date to date property in automation/workflow with custom code

**URL:** <https://community.hubspot.com/t/string-date-to-date-property-in-automation-workflow-with-custom-code/79501>\
**Category:** APIs & Integrations\
**Tags:** python, workflows\
**Created:** [April 18, 2023, 1:04am UTC](https://community.hubspot.com/t/string-date-to-date-property-in-automation-workflow-with-custom-code/79501 "2023-04-18T01:04:16Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![MaxWCS](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@MaxWCS](https://community.hubspot.com/u/MaxWCS)\
**Post date:** [February 15, 2024, 8:33am UTC](https://community.hubspot.com/t/string-date-to-date-property-in-automation-workflow-with-custom-code/79501/9 "2024-02-15T08:33:47Z")

</div>

Hi  
juste do this

`var convertDate = new Date(yourDate).valueOf();`

---

_[View the full topic](https://community.hubspot.com/t/string-date-to-date-property-in-automation-workflow-with-custom-code/79501)._
