Python:读取熊猫数据框的日期索引

我有一个熊猫数据框:

df2.index[0:10]
Out[35]: 
Index([2000-01-03 00:00:00, 2000-01-04 00:00:00, 2000-01-05 00:00:00,
       2000-01-06 00:00:00, 2000-01-07 00:00:00, 2000-01-10 00:00:00,
       2000-01-11 00:00:00, 2000-01-12 00:00:00, 2000-01-13 00:00:00,
       2000-01-14 00:00:00],
      dtype='object')

如何转换原始索引以使以下命令起作用?

M = df2.index.get_loc('2000-01-03')   # Not work now

谢谢!