quantlib.util.converter.pydate_to_qldate

pydate_to_qldate(date)

Converts a datetime object or a date string into a QL Date.