# API timestamp error for date properties

**URL:** <https://community.hubspot.com/t/api-timestamp-error-for-date-properties/11399>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [November 15, 2018, 10:25pm UTC](https://community.hubspot.com/t/api-timestamp-error-for-date-properties/11399 "2018-11-15T22:25:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [November 15, 2018, 10:25pm UTC](https://community.hubspot.com/t/api-timestamp-error-for-date-properties/11399/1 "2018-11-15T22:25:02Z")

</div>

Hi,

We are trying to create a deal through API’s. We get the information from Harvest.

When we create a new deal we need to add a date property, but this wont work. We keep getting this error:

### INVALID\_DATE [fee\_proposal\_sent\_date] =\> 1542240000 is at 20:24:0.0 UTC, not midnight!

But according to this website: [Time zone list / Epoch to time zone converter](https://www.epochconverter.com/timezones?q=1542240000&tz=UTC)  
It actually is at midnight…

We do not even need the timestamp, we just need the date properties.

Update: Added Miliseconds and now it works.

---

<div class="post-metadata">

**Author:** ![IsaacTakushi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/isaactakushi/32/70387_2.png) [@IsaacTakushi](https://community.hubspot.com/u/IsaacTakushi)\
**Post date:** [November 19, 2018, 6:52pm UTC](https://community.hubspot.com/t/api-timestamp-error-for-date-properties/11399/2 "2018-11-19T18:52:39Z")

</div>

Welcome, [@JustinPeters](https://community.hubspot.com/u/justinpeters)!

Apologies for the delayed response. I’m glad that you were able to find the solution on your own!

For others viewing this topic, [this documentation](https://developers.hubspot.com/docs/faq/how-should-timestamps-be-formatted-for-hubspots-apis) goes into a little more detail on the timestamp format HubSpot APIs accept.
