Okay, hello everyone I am an old timer from when these boards were around 8-9 years ago. I just recently have returned to working with NetSuite after a long hiatus and am running into some suffering.
I am attempting to use the PHP Toolkit with the WebServices. I am getting data in and out of the system except for when I try and reference Last Modified Date. I have tried every variation of date structure I can think of.
Can anyone guide me on my mistake with regards to the date/time structure???
Code
$soSearch = new nsComplexObject("TransactionSearchBasic");
$soIdSearchField = new nsComplexObject("SearchDateField");
$soIdSearchField->setFields(array("searchValue" => new nsListOrRecordRef(array("lastModifiedDate" => date("c", mktime(9,0,0,12,18,2009)))),
"operator" => "on"));
$soSearch->setFields(array("lastModifiedDate" => $soIdSearchField));
$myNSclient->setSearchPreferences(false, 10);
$searchResponse = $myNSclient->search($soSearch);
and this is the error
[30-Aug-2012 06:29:49 UTC] PHP Fatal error: Uncaught SoapFault exception: [soapenv:Server.userException] java.text.ParseException: Invalid dateTime format: in /home/amprodem/public_html/PHP_Toolkit/PHPtoolkit.php:1638
Stack trace:
#0 /home/amprodem/public_html/PHP_Toolkit/PHPtoolkit.php(1638): SoapClient->__soapCall('search', Array, NULL, Array, Array)
#1 /home/amprodem/public_html/PHP_Toolkit/PHPtoolkit.php(1356): nsClient->makeCall('search', Array)
#2 /home/amprodem/public_html/PHP_Toolkit/testsearchorders2.php(23): nsClient->search(Object(nsComplexObject))
#3 {main}
thrown in /home/amprodem/public_html/PHP_Toolkit/PHPtoolkit.php on line 1638
HELP????
Harry