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

<div class="post-metadata">

**Author:** ![VNguyen0](https://avatars.discourse-cdn.com/v4/letter/v/e19adc/32.png) [@VNguyen0](https://community.hubspot.com/u/VNguyen0)\
**Post date:** [April 18, 2023, 3:23pm UTC](https://community.hubspot.com/t/string-date-to-date-property-in-automation-workflow-with-custom-code/79501/3 "2023-04-18T15:23:27Z")

</div>

Thanks for the tip. Unfortunately I couldn’t get it to work. I’m using the custom code function in the workflow (node.js) and it complaining about moment.

I’ll keep plugging away at it, just very frustrating as HubSpot hasn’t provided any guidance. I’m able to use Zapier and use the formatter feature to do what it needs to do, but am trying to convert my zaps to workflows if possible.

---

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