jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raybristol <rayg...@gmail.com>
Subject Re: how to use date type in Query.XPATH ?
Date Tue, 25 Sep 2007 08:32:58 GMT

Thanks very much for your help, I thinks yours is right.


Thanks!


Lorenzo Dini wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-use-date-type-in-Query.XPATH---tf4509890.html#a12875277
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message