from datetime import datetime todays_datetime = datetime(datetime.today().year, datetime.today().month, datetime.today().day) payments = Payment.query.filter(Payment.due_date >= todays_datetime).all()