# Why does my custom code return invalid dates in HubSpot?

**URL:** <https://community.hubspot.com/t/why-does-my-custom-code-return-invalid-dates-in-hubspot/137238>\
**Category:** APIs & Integrations\
**Tags:** companies, developer-tools, sdk, object\
**Created:** [July 31, 2025, 4:55pm UTC](https://community.hubspot.com/t/why-does-my-custom-code-return-invalid-dates-in-hubspot/137238 "2025-07-31T16:55:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [August 11, 2025, 2:20pm UTC](https://community.hubspot.com/t/why-does-my-custom-code-return-invalid-dates-in-hubspot/137238/6 "2025-08-11T14:20:39Z")

</div>

Hi @DCrinnion1

"I believe you are reading company property and want to update the deal [property, id so, you need to change the date format to timestamp and send that value to update the deal property.

I hope this will help you out. Please mark it as **Solution Accepted and upvote** to help another Community member.  
Thanks!

---

_[View the full topic](https://community.hubspot.com/t/why-does-my-custom-code-return-invalid-dates-in-hubspot/137238)._
