title: Iterating over a list of dates from datetime index
body: <p>My initial dataframe <code>df</code>:</p>
  <pre><code>                     discharge1  discharge2
  datetime                                   
  2018-04-25 18:37:00        5862        4427
  2018-04-25 21:36:30        6421        4581
  2018-04-25 22:13:00        5948        4779
  2018-04-26 00:11:30        5703        4314
  2018-04-26 02:27:00        4988        3868
  2018-04-26 04:28:30        4812        3823
  2018-04-26 06:22:30        4347        3672
  2018-04-26 10:50:30        3896        3546
  2018-04-26 12:04:30        3478        3557
  2018-04-26 14:02:30        3625        3598
  2018-04-26 15:31:30        3751        3606
  </code></pre>
  <p>What I want to do is to get my dates a list, array, or series where I can iterate over all elements in my list. So that I can use those dates to access rows in another dataframe <code>df_other</code>, and in the end append them to a new dataframe <code>df_new</code>:</p>
  <pre><code>for date in date_list():
      df_new = df_new.append(df_other.iloc[df_other.index.get_loc(date)])
  </code></pre>
  <p>which for a date on my list should be run as:</p>
  <pre><code>df_new.append(df_other.iloc[df_other.index.get_loc('2018-04-25 18:37:00')])
  </code></pre>
  <p>I tried making a list using <code>df.index</code> but that returns a <code>Datetimeindex</code> where I can only access each date as:</p>
  <pre><code>display(df.index[0])
  Timestamp('2018-04-25 18:37:00')
  </code></pre>
  <p>where the Timestamp part ruins my <code>.append</code> call.</p>
  <p>Also tried <code>df.index.tolist()</code> but that returns a list of: <code>[Timestamp('2018-04-25 18:37:00'), ...]</code></p>