Date format in Marklogic for JSON Documents Date format in Marklogic for JSON Documents json json

Date format in Marklogic for JSON Documents


Is your range index created with the proper data type?

The error tells me you have created a range index of datatype date and your trying to push a dateTime into a date range.Try changing the definition of the range index from type date to type dateTime.

HTH,

Peter


Thank you all, found my error..

For types other than xs:string, I am not supposed to add the collation parameter to the sort-order.. Changed this to

<sort-order type="xs:dateTime" collation="http://marklogic.com/collation/" direction="ascending">    <field name="concept_createdDate"/></sort-order>

to

<sort-order type="xs:dateTime" direction="ascending">    <field name="concept_createdDate"/></sort-order>

and all worked