[Zope] Re: Whats the Format of Date in portal_catalog( )??
Josef Meile
jmeile at hotmail.com
Wed Aug 13 18:17:47 EDT 2003
> Hi All,
> I want to get the news items by date. for eg...news items
> created on a particular date.
>
> I tried with container.portal_catalog(created='2003-08-13'),
> container.portal_catalog(created='2003/08/13') and
> many other....
>
> But i am not getting anything in result...though i have some
> data...
>
> Is there any problem with date format...??? if yes please specify
> me the correct format??
I think that you have to pass a DateTime object and not a string:
from DateTime import DateTime
container.portal_catalog(created=DateTime('2003/08/13'))
Regards,
Josef
More information about the Zope
mailing list