# Date Time property for contacts

**URL:** <https://community.hubspot.com/t/date-time-property-for-contacts/85963>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [July 24, 2023, 12:15pm UTC](https://community.hubspot.com/t/date-time-property-for-contacts/85963 "2023-07-24T12:15:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JJoshi8](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jjoshi8/32/199370_2.png) [@JJoshi8](https://community.hubspot.com/u/JJoshi8)\
**Post date:** [July 24, 2023, 12:15pm UTC](https://community.hubspot.com/t/date-time-property-for-contacts/85963/1 "2023-07-24T12:15:23Z")

</div>

Hello All,

I am trying to create a field in Hubspot which would have a option to select a date and time. ( not the current time but a option to select a time).

Using this i get a 404 error .

## [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/properties)

[![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/c/9c98c9dfe353dc19aacd8d7cb83c86733c1ec697.jpeg "Creating a DateTime Property in HubSpot") ](https://www.youtube.com/watch?v=2R2fRYXmXUI&t=161s)

Checked with google bard and it says the API has changed to V4.

How do i get this done?

---

<div class="post-metadata">

**Author:** ![coldrickjack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/coldrickjack/32/6684_2.png) [@coldrickjack](https://community.hubspot.com/u/coldrickjack)\
**Post date:** [July 24, 2023, 12:58pm UTC](https://community.hubspot.com/t/date-time-property-for-contacts/85963/2 "2023-07-24T12:58:32Z")

</div>

Hey @JJoshi8,

The instructions in that video should still work. If you are getting a 404 error i’d double check to make sure your endpoint is correctly formatted. It should be:

`https://api.hubapi.com/crm/v3/properties/contact`

If you omit the last part where it says “contact” it’ll throw a 404 as it doens’t know what object you are creating the object against. To confirm that video was still working I ran through the exact same steps and the output can be seen below - a datetime property on the contact object:

 ![Screenshot 2023-07-24 at 13.54.46.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/a/7aa970e02fc71c240c685d04e9be2d483d503903.png)

An important thing to note is that even when you successfully get this working the HubSpot UI won’t actually show you the time nor will it let your users choose a time when inputting a value. It’s primarily used for integrations syncing data or for setting within a worklfow or calculated properties. What I mean by that is if I view the contact I’ll see:

![Screenshot 2023-07-24 at 13.56.55.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/f9cf49e07d94ebc8bbdd6f85c356b3ca1570cb73.png)

If I try to update the value within the UI I will see:

 ![Screenshot 2023-07-24 at 13.57.15.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/d/8dbf0d49dc33ac547d6a252a2e230b86c945c8e7.png)

However if I was to run an API call to update the property with the below:

```lia-code-sample
{
 "properties": {
 "date_time_property": "2023-07-24T13:50:06.678Z"
 }
}

```

I’d get a 200 ok and if I were to pull that same property I’d get:

```lia-code-sample
{
 "id": "101",
 "properties": {
 "createdate": "2023-07-20T16:28:37.941Z",
 "date_time_property": "2023-07-24T13:50:06.678Z",
 "hs_object_id": "101",
 "lastmodifieddate": "2023-07-24T12:52:10.486Z"
 },
 "createdAt": "2023-07-20T16:28:37.941Z",
 "updatedAt": "2023-07-24T12:52:10.486Z",
 "archived": false
}

```

---

<div class="post-metadata">

**Author:** ![JJoshi8](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jjoshi8/32/199370_2.png) [@JJoshi8](https://community.hubspot.com/u/JJoshi8)\
**Post date:** [July 24, 2023, 1:49pm UTC](https://community.hubspot.com/t/date-time-property-for-contacts/85963/3 "2023-07-24T13:49:15Z")

</div>

@coldrickjack Thank you for your prompt response.

Is there any way i can achive to add a property for the person to select a date and time? as based on that i need to further set another automation to create a calender event on the date/time selected.

many thanks for your help.

regards,

Jignesh

---

<div class="post-metadata">

**Author:** ![coldrickjack](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/coldrickjack/32/6684_2.png) [@coldrickjack](https://community.hubspot.com/u/coldrickjack)\
**Post date:** [July 24, 2023, 1:59pm UTC](https://community.hubspot.com/t/date-time-property-for-contacts/85963/4 "2023-07-24T13:59:57Z")

</div>

Hey @JJoshi8,

Unfortunately not I’m afraid! As mentioned it’s primarily used for integrations syncing data or for setting within a worklfow or calculated properties.
