jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenzo Dini <Lorenzo.D...@cern.ch>
Subject Re: how to use date type in Query.XPATH ?
Date Mon, 24 Sep 2007 16:21:35 GMT
Hi,

I had the same problem and after a looong search around I found how it 
works:

[@date = xs:dateTime('2008-01-01T00:00:00.000+02:00')]

I hope it helps

Cheers,

Lorenzo

raybristol ha scritto:
> String path = "paper/*@ReceivedDate='20070905 00:00:00']"
> Query q = qm.createQuery(path, Query.XPATH);
> 
> I want to do a search by a datetype varialbes like above, however it doesn't
> work, I try a couple of different format with limited sucess, I couldn't get
> much more information from google, I can easliy do a search for a String
> type but just got no clue how to do with a date type!
> 
> Thanks for a million for your help!
> 
> Ray:,(

-- 
*Lorenzo Dini*

CERN - European Organization for Nuclear Research
Information Technology Department
CH-1211 Geneva 23

Building 28 - Office 1-007
Phone: +41 (0) 22 7674384
Fax: +41 (0) 22 7668847
E-mail: Lorenzo.Dini@cern.ch

Mime
View raw message