jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Franchet <raph...@anyware-tech.com>
Subject comparing dates in an XPATH search
Date Mon, 19 Sep 2005 14:32:25 GMT
Hello,

In my repository, I got a "lastModified" property as a Date.

Whith =, this is ok:
createQuery("//*[@myns:lastModified = '2005-08-01T17:42:46.177+02:00']"...

But with other comparator, that is not the case:
createQuery("//*[@myns:lastModified >= 
'2005-08-01T17:42:46.177+02:00']"... returns all the nodes! (whatever 
the date is)

Any idea on how to do it ?

Thanks,

-- 

Raphaël FRANCHET
Systèmes d'information
ANYWARE TECHNOLOGIES
Tel: +33 (0)5 61 00 73 47
Fax : +33 (0)5 61 00 51 46
www.anyware-tech.com

Mime
View raw message