The date formatting in the HubSpot API is different from that in the user interface.

Hi all,
I have a question about HubSpot date formatting. When we modify the date formatting in the HubSpot settings, it reflects the changes in the HubSpot user interface, as depicted in screenshot 1.


Screenshot 1

However, these changes do not seem to affect the date formatting in the API call response, as shown in screenshot 2. Here you can see “test_date_picker” property date formatting is different from the one shown in UI.


Screenshot 2
Is there a way to align the date formatting in API calls with the HubSpot UI?
Thanks

Hi @hashnoxt

If you read the date from HubSpot it will come in the “2023-10-15” format no matter how it is shown in UI. If you want to update or create the date value in HubSpot then also you have to use YYYY-MM-DD format. But if you want to use date somewhere else then you can always format the date received in the API response body.

Hope this will helps you out. Please mark it as Solution Accepted & Upvote to help other Community member.
Thanks!