# 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:** 10

<div class="post-metadata">

**Author:** ![ALintermanns](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@ALintermanns](https://community.hubspot.com/u/ALintermanns)\
**Post date:** [February 15, 2024, 9:23am UTC](https://community.hubspot.com/t/string-date-to-date-property-in-automation-workflow-with-custom-code/79501/10 "2024-02-15T09:23:18Z")

</div>

Thank you. I am not sure if my reply shows correctly, but I have the output correct in ISO timestamp. But I am not able to pass it to property. As it shows “invalid data”

Would the code you added correct this issue?

 ![Screenshot 2024-02-15 at 10.21.48.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/b/6b0b9f164a0918ddaeb926ccf79f6263e008b151.png)

 ![Screenshot 2024-02-15 at 09.35.39.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/d/5d9930af59a1b2b3ca90911dc9189c8ff4b70536.png)

My issue is in this step:

 ![Screenshot 2024-02-15 at 10.21.27.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/4/4ca002b70511ac531fca732a6b0d1800f4ff785c.png)

The delivery date (timestamp) is a date picker property.

 ![Screenshot 2024-02-15 at 10.21.19.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/2/42df2d3ed54e34301de2e893d5dc91634b7689a5.png)

Hope you can help me, I am been 3 weeks stuck with this.

Thank you!!

---

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