APIs & Integrations

cbouckae
Participant | Diamond Partner
Participant | Diamond Partner

Custom timeline event date not showing correctly

SOLVE

Hi experts,

 

We create a custom timeline event. We added an attribute of time date.  We understood you need to add a date using the api as a unix time stamp in miliseconds (midnight GMT).

 

However, in the timeline event, this does not show as a date.  It just shows the time stamp (1557273600000 in this case).  

 

Screenshot 2019-05-09 at 12.05.27.png

 

Any suggestions?

 

 

Thx, Carl

0 Upvotes
1 Accepted solution
JasminLin
Solution
HubSpot Employee
HubSpot Employee

Custom timeline event date not showing correctly

SOLVE

Hi @cbouckae , in order to display the date/time in the formatted way and not in unix milliseconds, you'll need to make sure that within your event type, the detailTemplate field you have formatted the data to display the date in the format. 

 

For example: 

{{#formatDate installation_date}}{{/formatDate}}

This will display the installation_date property in the date format instead of in milliseconds. You can read more about this here https://developers.hubspot.com/docs/methods/timeline/timeline-overview#extra-data

View solution in original post

0 Upvotes
1 Reply 1
JasminLin
Solution
HubSpot Employee
HubSpot Employee

Custom timeline event date not showing correctly

SOLVE

Hi @cbouckae , in order to display the date/time in the formatted way and not in unix milliseconds, you'll need to make sure that within your event type, the detailTemplate field you have formatted the data to display the date in the format. 

 

For example: 

{{#formatDate installation_date}}{{/formatDate}}

This will display the installation_date property in the date format instead of in milliseconds. You can read more about this here https://developers.hubspot.com/docs/methods/timeline/timeline-overview#extra-data

0 Upvotes