quantlib.util.converter.pydate

pydate(date)

Accomodate date inputs as string or python date