title: CSV filename in date-form as Index
body: <p>I have a couple of csv files that have as title yyyymmdd: <img src="https://i.stack.imgur.com/HR9hR.png" alt="&#39;yyyymmdd&#39;">. I also have a several csv files that have 'yyyymm' and one with 'yyyy' which I <strong>don't</strong> want to import.</p>
  
  <p>Problem is, the csv files themselves only have time and not date: </p>
  
  <p><img src="https://i.stack.imgur.com/6kDgU.png" alt="datetimeformat">.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>import pandas as pd
  from glob import glob
  
  photolist = glob('********.csv')
  
  dataframes = [pd.read_csv(Tage, delimiter=';',
                      skiprows=2,
                      encoding='cp1252',
                      parse_dates = True,
                      index_col = 0) for Tage in photolist]
  
  
  print(dataframes)
  </code></pre>
  
  <p>The index for the dataframes returns the right time but not the right date.</p>
  
  <p>So my question is: How can I have the same date as index as the csv filname?</p>