quantlib.time.date.Date.from_datetime

classmethod Date.from_datetime(cls, dt)

Returns a QuantLib Date object from a Python datetime.date