I’m trying to figure out a (or the) correct format for sending date parameters via a POST request to a form with a date picker via the
I first tried
yyyy-mm-dd format, e.g., for August 15, 2016 I sent
2016-08-15. Although this seems to be interpreted correctly when you view submissions for that particular form, when looking at the associated Contact that it creates or updates, the date field displays
Invalid date in red.
On the other hand, sending the date in
mmm dd yyyy, e.g.
Aug 15 2016, displays the date as
Invalid date when viewing submissions to the form, but when drilling down to a specific Contact, the date displays correctly.
Assuming I’d prefer the latter — that this date get written to the Contact’s record correctly — is
mmm dd yyyy the format of choice to send via this endpoint? Is there a standard format for sending date parameters to the HubSpot API that would be correctly interpreted in both cases? Can I decouple the way dates are displayed in HubSpot and how I choose to send them via the API by some admin setting?
Thanks for any help you can provide.