Hello Jandl,
Welcome to the forum!
So, with a small code example, it would have been perfect.
I will try to decrypt your question. So you have done a small test in Java with the OD API in order to search for some documents, and you are using the ODCriteria in order to search for your documents.
You are not using some SQL WHERE clause for that.
Is this correct? If yes, then you need to know that the ODCriteria use the Folder Field name to do the search.
If you use the SQL WHERE clause, then you need to use the Application Group field name.
Let say you want to search with the ODCriteria, then when you search with a date field, you must make sure that you are using the correct date format, other you might search for a different date. To know which format to use, you need to get the date format with the method ODCriteria.getDefaultFmt(). It use the same format that setup in CMOD with the %Y, %y, %M, etc...
If you are searching with the SQL where clause, then this document might of interest:
https://www-01.ibm.com/support/docview.wss?uid=swg27036188I hope what I've written is clear, otherwise I will try to be more explicit :-)
Cheers!