I think you were right in the first place. He does want to leave the year 
out, hence the replace function ... Note to myself - understand the 
question before you answer ...

On Wednesday, August 28, 2013 9:01:14 PM UTC+3, Jonathan Vanasco wrote:
>
> sorry, it looks like the OP did want people born on the current 
> month/day/year combo.
>
> you should be able to wrap all the comparisons in a date like this :
>
>     Member.query.filter( sqlalchemy.func.date(Member.dateofbirth) == 
> '2013-08-27' ).all()
>     Member.query.filter( sqlalchemy.func.date(Member.dateofbirth) == 
> sqlalchemy.func.date(datetime.today()) ).all()
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to