Converting date


When I try to pass a date value to 'close date' on hubspot from an external script it always ends up with the date Jan 18, 1970 on hubspot Deals. It appears the data type of close date is Long as I think it is expecting a UNIX datetime stamp. In the script I've tried $close_date = mktime(16, 26, 37, 6, 14, 2018), $close_date = Date('M d, Y') with no luck.


Hi @cmartin19

HubSpot API endpoints accept UNIX formatted timestamps in milliseconds; I'm not entirely sure what format the timestamp(s) returned by the mktime function are, but I'd recommend double checking to confirm that it's a UNIX millisecond timestamp.