Thanks. I added a time part to the datetime.datetime object as: end_dt = datetime.datetime.combine(pd.Timestamp(form.to_dt.data).to_datetime(), datetime.time(23,59,59))
Then I passed end_dt to the query. it works great. -- 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 sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.