>>> pandas.to_datetime('2005-1-13', format='%Y-%m-%d', infer_datetime_format=True) Timestamp('2005-01-13 00:00:00')