I’m submitting an order form using xmlrpc api in php in which I want to create blank order invoice to which one of the argument is to add orderdate but I’m getting error of datetime type that is it has to be of type datetime.
I’ve used the following code to set type to datetime but it fails.
$params = date(“Ymd\TH:i:s”, time());
Yes I tried your code and I got the infusionDate value as 20200929T13:13:260
I checked by printing $call4 variable and it shows that infusionDate goes as ‘string’ type in array instead of ‘datetime’ type which is required one.
and got the error as
[errstr] => No method matching arguments: java.lang.String, java.lang.Integer, java.lang.String, java.lang.String, java.lang.Integer, java.lang.Integer