Hi Eugene, have you checked that lucene is indexing your fields as a date? In the domain definition of your repository namespace you should have something like this defined underneath the properties section.
<property name="creationdate" namespace="DAV:" type="date"/> Kind regards, Jeroen Reijn -----Original Message----- From: [EMAIL PROTECTED] on behalf of Eugene Fabrikant Sent: Wed 9/19/2007 15:38 To: Hippo CMS development public mailinglist Cc: Subject: Re: [HippoCMS-dev] Date format in templates Hi Jasha, Sorry about the typo, it is yyyyMMdd. I'm currently using the index property as a stopgap measure to sort the results. I am definitely getting the date value because I'm using it in my JSP. Is there a particular format that Lucene is expecting? Thanks, Eugene Jasha Joachimsthal wrote: > Hi Eugene, > > mm is for minutes, MM for months. > If you change the sort from the date property to index or xcaption., do > you get a sorted result then? > Are you sure the date property is set (does it return a value in your > dasl result)? > > Jasha Joachimsthal > > Hippo > Oosteinde 11 > 1017 WT Amsterdam > The Netherlands > +31 (0)20 5224466 > > www.hippo.nl > > >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of >> Eugene Fabrikant >> Sent: dinsdag 18 september 2007 20:45 >> To: Hippo CMS development public mailinglist >> Subject: [HippoCMS-dev] Date format in templates >> >> Hello Friendly Hippos, >> >> I'm having an issue with a DASL query that sorts on a date >> field. I get all kinds of random sorting that bear no >> relation to ascending or descending date orders. Currently >> I'm storing the date field in yyyymmdd format. Is this >> incorrect perhaps? >> >> TIA, >> >> -- >> Eugene Fabrikant >> Bluenog >> >> 732-733-1120 x108 (w) 732-733-1139 (f) >> 973-722-4538 (c) bluenogef (Y!IM, AIM) >> [EMAIL PROTECTED] www.bluenog.com >> >> ******************************************** >> Hippocms-dev: Hippo CMS development public mailinglist >> >> > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > -- Eugene Fabrikant Bluenog 732-733-1120 x108 (w) 732-733-1139 (f) 973-722-4538 (c) bluenogef (Y!IM, AIM) [EMAIL PROTECTED] www.bluenog.com ******************************************** Hippocms-dev: Hippo CMS development public mailinglist ******************************************** Hippocms-dev: Hippo CMS development public mailinglist
