# Issue with unix timestamp

**URL:** <https://community.hubspot.com/t/issue-with-unix-timestamp/69031>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [November 10, 2022, 4:28pm UTC](https://community.hubspot.com/t/issue-with-unix-timestamp/69031 "2022-11-10T16:28:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AEugene](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@AEugene](https://community.hubspot.com/u/AEugene)\
**Post date:** [November 10, 2022, 4:28pm UTC](https://community.hubspot.com/t/issue-with-unix-timestamp/69031/1 "2022-11-10T16:28:14Z")

</div>

Hi,

I’m trying to create contacts through Hubspot’s API. This is the python dictionary with the properties I would like to send to create the contact:

`{'properties': {'email': 'juan@venturematic.com', 'firstname': 'Juan', 'lastname': 'Esteban', 'date_joined_social_pulse_community': '1667948400000', 'prnom_et_nom': 'Juan Esteban'}}`

date\_joined\_social\_pulse\_community is a date picker so the value I send is in UNIX timestamp. If I removed this property from the request it works. Therefore I received this error:

`400 Client Error: Bad Request for url: https://api.hubapi.com/crm/v3/objects/contacts`

Any idea why this doesn’t work?

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 14, 2022, 9:58pm UTC](https://community.hubspot.com/t/issue-with-unix-timestamp/69031/2 "2022-11-14T21:58:21Z")

</div>

Hi, @AEugene 👋 Thanks for reaching out! Furthermore, thank you for including those details.

Questions:

Are you sending your UNIX timestamp as an EPOCH millisecond timestamp?

Are using a date property (including date-picker) and not a`datetime` property?

If you are needing to add both date and time you’ll need to update your property to be`datetime` or create a new custom`datetime` property via the [Properties API endpoints](https://developers.hubspot.com/docs/api/crm/properties#tab-2).

Additional information:

- **`date`** properties (including `date picker` properties created in HubSpot) store the date—not the time.
- `datetime` properties store both the date and time.
- _ **Please note** : if you’re using a UNIX timestamp for a `date` property and try to set a value that isn’t midnight UTC, you’ll receive an error._
- Full details here — [Date and datetime properties in the HubSpot CRM](https://developers.hubspot.com/docs/api/faq?_ga=2.74432208.315435662.1668404598-595735326.1664810719#:~:text=Date%20and%20datetime%20properties%20in%20the%20HubSpot%20CRM)

Have fun building! — Jaycee
