APIs & Integrations

annieg241
Contributor

How do I create a timestamp with a date and time?

SOLVE

I want our timestamp properties to include both a date and a time. How can I do this?

2 Accepted solutions
ChrisoKlepke
Solution
Key Advisor | Elite Partner
Key Advisor | Elite Partner

How do I create a timestamp with a date and time?

SOLVE

Hey @annieg241 , 

 

thank you for reaching out to the community. 

 

That is an excellent question. Datetime properties can be created through the API. You can check this table here for more information and create the property by using this endpoint:

 

POST /crm/v3/properties/{objectType}

 

Hope that helps. If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I'd really appreciate it. 

 

Cheers, 

Chriso

 

View solution in original post

karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

How do I create a timestamp with a date and time?

SOLVE

Hi @annieg241,

 

Good news, it's now possible to create datetime properties through the HubSpot user interface 🙂 This feature is in private beta.

 


Create Datetime properties in HubSpot

June 20, 2024

What is it?

You will now be able create custom Datetime properties in HubSpot’s CRM, expanding the types of data you can store across the Smart CRM.

 

Why does it matter?

This new field type will allow you to get more insights from your CRM about when something happened. Some use cases include:

  • Manually edit Time to capture when something happened across the CRM
  • Require a datetime property when deal record is created
  • Copy over property values between default & custom datetime properties via a Workflow

How does it work?

Object Settings > Properties > Create Property > Date and Time

Note:

  • 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 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.

 

Who gets it?

All hubs and tiers

Learn More:

Join the discussion on our Community


You can check whether you can request this beta here.

 

karstenkoehler_2-1718943546882.png

 

If it's not there, you'll have to be patient and check again later.

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

9 Replies 9
AMedinaAlvare
Member

How do I create a timestamp with a date and time?

SOLVE

I made one with custom code in Python, then set the property where I store the result. My code saves the day of the week and creation date in text format.

I need it this way to personalize an email.


0 Upvotes
jaah
Contributor | Platinum Partner
Contributor | Platinum Partner

How do I create a timestamp with a date and time?

SOLVE

Hey @karstenkoehler

Do you know if this beta has been removed again? I could really use it for something i am working on but it is not available when i search for it:

jaah_0-1720078312597.png

 

 

0 Upvotes
karstenkoehler
Hall of Famer | Partner
Hall of Famer | Partner

How do I create a timestamp with a date and time?

SOLVE

@jaah this is a private beta – so not open to all users yet. I assume the product team will roll this out gradually and, depending on how it goes, also slow down the roll-out, @georgieh.

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

How do I create a timestamp with a date and time?

SOLVE

Hi @annieg241,

 

Good news, it's now possible to create datetime properties through the HubSpot user interface 🙂 This feature is in private beta.

 


Create Datetime properties in HubSpot

June 20, 2024

What is it?

You will now be able create custom Datetime properties in HubSpot’s CRM, expanding the types of data you can store across the Smart CRM.

 

Why does it matter?

This new field type will allow you to get more insights from your CRM about when something happened. Some use cases include:

  • Manually edit Time to capture when something happened across the CRM
  • Require a datetime property when deal record is created
  • Copy over property values between default & custom datetime properties via a Workflow

How does it work?

Object Settings > Properties > Create Property > Date and Time

Note:

  • 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 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.

 

Who gets it?

All hubs and tiers

Learn More:

Join the discussion on our Community


You can check whether you can request this beta here.

 

karstenkoehler_2-1718943546882.png

 

If it's not there, you'll have to be patient and check again later.

 

Best regards!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

georgieh
Participant

How do I create a timestamp with a date and time?

SOLVE

I was so excited to see this pop up last week - I requested to join the private beta and received a notification it could take up to 3 business days for my request to be reviewed. I went back into Product Updates to check on the status of my request on Monday and I can't find anything to do with create Datetime properties anymore. It appears it might have been removed ☹️

0 Upvotes
ChrisoKlepke
Solution
Key Advisor | Elite Partner
Key Advisor | Elite Partner

How do I create a timestamp with a date and time?

SOLVE

Hey @annieg241 , 

 

thank you for reaching out to the community. 

 

That is an excellent question. Datetime properties can be created through the API. You can check this table here for more information and create the property by using this endpoint:

 

POST /crm/v3/properties/{objectType}

 

Hope that helps. If you found this post helpful, consider helping others in the community to find answers faster by marking this as a solution. I'd really appreciate it. 

 

Cheers, 

Chriso

 

annieg241
Contributor

How do I create a timestamp with a date and time?

SOLVE

@ChrisoKlepke How can I get this date time stamp to work when I am tracking when something occurred? For example, when a contact became "working" I want to track the date and time

ChrisoKlepke
Key Advisor | Elite Partner
Key Advisor | Elite Partner

How do I create a timestamp with a date and time?

SOLVE

Hey @annieg241 , 

 

This is a bit difficult as it is not possible to use the workflow action set property value since it only safes the date to this property. If you have Ops Hub Pro, you can utilize a Custom Code Workflow Action to set that property also with the API. 

 

So in conclusion: You can create the property and set it with a time only through the API as far as I know.

 

Cheers, 

Chriso

0 Upvotes
annieg241
Contributor

How do I create a timestamp with a date and time?

SOLVE
Do you know how I could do that within the API?
0 Upvotes