pandas.Index.to_datetime

Index.to_datetime(dayfirst=False)[source]

For an Index containing strings or datetime.datetime objects, attempt conversion to DatetimeIndex