The getReturns() param returnCreationStartDate, returnCreationEndDate expects DateTime, if i give the datetime type like
2024-12-01T00:00:01Z (converted into Datetime type) it gives error as Object of class DateTime could not be converted to string below is the code
$returnCreationStartDateString = new \DateTime ('2024-12-10T00:00:01Z');
$returnCreationEndDateString = new \DateTime ('2024-12-10T23:00:01Z');
$returnOrderId = null;
$customerOrderId = null;
$status = null;
$replacementInfo = null;
$returnType = null;
$returnCreationStartDate = $returnCreationStartDateString;
$returnCreationEndDate = $returnCreationEndDateString;
$returnLastModifiedStartDate = null;
$returnLastModifiedEndDate = null;
$limit = '200';
$result = $returnsApi->getReturns($returnOrderId, $customerOrderId, $status, $replacementInfo, $returnType, $returnCreationStartDate, $returnCreationEndDate, $returnLastModifiedStartDate, $returnLastModifiedEndDate, $limit);
how could i resolve this? @jlevers