Hi Sergiu!
I played before with jodatime. It have some problems ...
For example, I tried to use example script from plugin home page (it can be
usefull in my situation) and this script doesn't working:
#set($formatter =
$xwiki.jodatime.getDateTimeFormatterForPattern('yyyy.MM.dd'))
#set($myBirthday = $formatter.parseDateTime('2007.11.25'))
#set($daysLeft = $myBirthday.minus($now.millis))
$daysLeft.getDayOfYear() days left till my birthday!
Also joda time is badly described - for all these reasons I used datetool.
About query ... Better for me - XWQL, but all my tryings to use any dates in
XWQL gives some errors (most of all - java errors in a translation from XWQL
to hql ...). I am not a professional in a XWQL and HQL (I am not sure - this
is my error or bug), and Ricardo gave working example of using HQL - for
this reason I used ready query example.
If you can give working example of using dates in a XWQL - will be great!
Also I tried examples from here:
http://dev.xwiki.org/xwiki/bin/view/DesignArchive/XWikiQueryLanguageSpecifi…
(second script) - but give me error.
--
View this message in context:
http://xwiki.475771.n2.nabble.com/using-XWQL-with-additional-search-criteri…
Sent from the XWiki- Users mailing list archive at
Nabble.com.