When sending a filter to the webservice in php everything works fine, but when we need to sort on dates we encountered a problem. We need to get all the objects modified after a certain date.
In a page we have a date element, like so:
<xsd:element minOccurs="0" maxOccurs="1" name="Last_Date_Modified" type="xsd:date"/>
And we have tried the solution explained here on SO:
Dynamics Nav (Navision) webservice ReadMultiple date filter
But our date format is a bit different, ours looks like: 2013-01-01
In our filter, we have tried the following:
array(
'Field' => 'Last_Date_Modified',
'Criteria' => '20130101..'
)
And some other variations, but it doesn't return anything. If we leave it blank it returns everything. Does anyone have an idea as to what we can do? Would it help if we somehow stored the last_modified_date as a bigint like a unix timestamp?