Hubspot client api filter dates

Hi,
I’m trying to get the latest record by using the searchApi.doSearch. Is this the correct format?

“filterGroups”: [

{

“filters”:[

{

“propertyName”: “createdate”,

“operator”: “GTE”,

“value”: “2023-04-20”

}

]

}

Also, the api https://api.hubapi.com/companies/v2/companies/recent/created?since=1714089600&count=2 reacently created/modified for deal and companies, the since and count is not working.

TL:DR: Hubspot CRM Search API expects for their datetime field. It is in UNIX Epoch timestamp in milliseconds format. If it is just the date, the date at 12:00 AM (00 hours 00 mins 00 secs). Here’s an example of what 31 Aug, 2024 is: 1722297600000. Pass it as a string to the API.

source