php - How to get date value from protected array? -
i getting output amazon's study api , trying availabledate field value maintain telling me .
output amazon api:
marketplacewebservice_model_reportinfo object ( [fields:protected] => array ( [reportid] => array ( [fieldvalue] => 11111111111 [fieldtype] => string ) [reporttype] => array ( [fieldvalue] => _get_date_range_financial_transaction_data_ [fieldtype] => string ) [reportrequestid] => array ( [fieldvalue] => 11111111111 [fieldtype] => string ) [availabledate] => array ( [fieldvalue] => datetime object ( [date] => 2014-11-07 11:50:58 [timezone_type] => 1 [timezone] => +00:00 ) [fieldtype] => datetime ) [acknowledged] => array ( [fieldvalue] => [fieldtype] => bool ) [acknowledgeddate] => array ( [fieldvalue] => [fieldtype] => datetime ) ) )
i trying code:
$sdate = new datetime($available_date);
please help...
try using public getavailabledate()
method.
<? $marketplacereport = new marketplacewebservice_model_reportinfo(); $sdate = $marketplacereport->getavailabledate(); ?>
php arrays date amazon-mws
No comments:
Post a Comment