Is it possible to query using only a Date field such as '2017-03-02
' in IBM FileNet?
I have tried the below statement and it doesn't seem to work
SELECT *
FROM Table_Name
WHERE EstimatedDate = '2017-03-02'
OR
SELECT *
FROM Table_Name
WHERE EstimatedDate <= DATE '2017-03-02'
I tried including TIMESTAMP and the below query works but i want to search only by using date such as '2017-03-02'
SELECT *
FROM Table_Name
WHERE EstimatedDate <= TIMESTAMP '2017-03-02T00:00:00.000Z'
According to IBM FileNet P8, Version 5.2 - SQL Syntax reference"
Thus, in FileNet P8 do not use
timestamp
ordate
keywords, but only the date you have written in one of these formats, and note - without an apostrophe sign!You can find examples in a free book Developing Applications with IBM FileNet P8 APIs, for example on a page 73 there is
Example 3-30
:As you see, the date in this example is written directly without any apostrophes as:
20090701T000000Z
using<ISO datetime>
format, you can also use another format:2009-07-01