[storm] Like on DateTime using only date
Gustavo Niemeyer
gustavo at niemeyer.net
Mon Mar 3 16:21:09 GMT 2008
Hey Lutz,
> with at DateTime property I'd like to compare only using the date
> part. But the like method of DateTime needs a datetime.datetime
> instance, not a datetime.date instance. How can I formulate the like
> condition to only select those records whose DateTime propery match a
> datetime.date instance?
I'm not sure I understand what's the problem you're facing. The
DateTime indeed needs a datatime object. We may extend it to support
automatic conversion from date objects, but it should be fairly simple
to make it work as it is now.
Can you provide some sample code that is failing, and that you're having
trouble to make it work correctly?
--
Gustavo Niemeyer
http://niemeyer.net
More information about the storm
mailing list