I’d like to correct a few things that @mrspabs has mentioned here:
It is NOT possible to create date/time properties via the UI. Creating a “date picker” type property via the UI will result in a simple date property. The only way to create a date/time property is by sending a POST request to the “Create contacts property” HubSpot API.
Once you do have a date/time property, yes, it is true that you need to click on “details” in order to view the time associated with the date (just HubSpot things!).
If you’re trying to populate date and date/time properties by using the “Batch create/update contacts” HubSpot API:
To populate a date property for contacts via the HubSpot API, you need to convert the date into date/time first with the time set to midnight UTC otherwise the API will generate an error. Then, this date/time must be converted into a UNIX timestamp before you’re able to pass it on towards HubSpot via their API (in their prescribed JSON format).
To populate a date/time property for contacts (once you’ve managed to create one successfully as described in Point 1 above) via the HubSpot API, the date/time must be converted to a UNIX timestamp before you’re able to pass it on towards HubSpot via their API (in their prescribed JSON format).
Read more on date and datetime properties here.
Hope this helps someone as I wasn’t able to find all of this information on just a single page. And yes, HubSpot needs to find a better way to manage this data type, especially within their UI!
Hi all, I’m Rachel from the HubSpot Product team. An update - we are now in public beta for ‘Create Datetime properties in HubSpot,’ which allows you to create custom Datetime properties. You can opt into the beta under Product Updates. A few notes:
When viewing and editing this property, a user’s current time zone will be used. This is based on the time zone set on their device.
When filtering with this property, your account’s time zone will be used by default.
Any custom datetime properties that had been created via a Support request / via API will now display Date & Time.
‘Date’ properties whose field type can be edited can now be converted to ‘Date and Time.’
Datetime properties will be displayed as Date in the Forms Editor. Datetime properties are not yet supported in the new Forms Editor.