Skip to main content
Question

Can I pull the Event Date through a HubSpot form in the correct format instead of just numbers?


Splash Events

I’m trying to pull through a hubspot form with an Event Date, however i can’t seem to manage to pull the date through in the correct format.  it just comes through with lots of numbers.

Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

6 replies

ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • 6537 replies
  • June 20, 2023

Hi there @Splash Events,

Welcome to the Community! 🎉

The issue you're experiencing is because the HubSpot API endpoints use UNIX formatted timestamps in milliseconds, which is a bit different from the date formats we often see. But don't worry! We have a handy tool called the Formatter by Zapier that can help you out!

Formatter by Zapier is great at converting one date/time format into another. So, you can use one to change the UNIX timestamp into a format that suits your needs better. If you'd like to learn more about setting up this Formatter Step, you can check out this link: https://help.zapier.com/hc/en-us/articles/8496044811917-How-to-Get-Started-with-Formatter-by-Zapier#date-time-0-15

Here’s an example:

5089eafd9de03d2f3a6f598994dbfd17.png
(view larger)

0a56801d3c83326b9a5ab77d3b117bfb.png
(view larger)

Hopefully, this helps! 😊

 

 

 


Splash Events

Thank you, I have install formatter but it doesn’t seem to be working.   is there something I am doing wrong.

 


Troy Tessalone
Forum|alt.badge.img+14

Hi @Splash Events 

Try specifying the From Format.

 


Splash Events

I’ve tried that too and it still doesn’t seem to change :(


Troy Tessalone
Forum|alt.badge.img+14

@Splash Events 

The Formatter expects a UNIX Timestamp like this with 10 digits.

 

The Event Date being provided is 13 characters.

Thirteen-character timestamps are generally UNIX timestamps with a millisecond precision.

You can add another Zap step to use a Formatter > Numbers > Perform Math Operation (divide by 1000).

 


SamB
Community Manager
Forum|alt.badge.img+11
  • Community Manager
  • 7811 replies
  • July 19, 2023

Hi there, @Splash Events!

Just checking in to see how you’re getting on with this. Were you able to get it sorted using a Formatter action as Troy suggested?

If you’re still in need of some help with this just let us know! 🙂