jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmed Elshereay <AElsher...@idc.com>
Subject Re: xpath query problem
Date Fri, 16 Jul 2010 12:17:41 GMT
Hi,

I found how to get an XML date format in java, here's the way:

GregorianCalendar cal = new GregorianCalendar(2010, Calendar.JULY, 15, 15, 
29, 17);
XMLGregorianCalendar xmlCal = DatatypeFactory.newInstance
().newXMLGregorianCalendar(cal);

Then...

xs:dateTime('" + xmlCal.toXMLFormat() + "')

 Thank you Alex.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message