title: ValueError: time data '2013/05/24 07:00:00' does not match format '%Y-%m-%d %H:%M:%S'
body: <pre><code>import csv
  import datetime as dt
  import datetime
  
  import matplotlib.pyplot as plt
  
  
  x,y = [],[]
  csv_reader = csv.reader(open('noneventEventdetect.csv'))
  for line in csv_reader:
      x.append(line[1])
      T = dt.datetime.strptime(line[0],'%Y-%m-%d %H:%M:%S')
      #print(T)
      y.append(T)
  fig = plt.figure()
  ax = fig.add_subplot(111)
  ax.plot(y,x) 
  fig.autofmt_xdate()
  
  
  
  plt.show()
  </code></pre>
  
  <p>Example CSV data (python3.4):</p>
  
  <blockquote>
    <p>24/5/2013 7:00:00     1</p>
    
    <p>24/5/2013 7:00:00     2</p>
    
    <p>24/5/2013 7:00:00     3</p>
    
    <p>24/5/2013 7:00:00     4</p>
    
    <p>24/5/2013 7:00:00     5</p>
    
    <p>24/5/2013 7:00:00     6</p>
  </blockquote>
  
  <p>This  error:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):</p>
    
    <p>File "C:\Users\Kitravee\Desktop\New folder (4)\sdf.py", line 12, in
    </p>
  
  <pre><code>T = dt.datetime.strptime(line[0],'%d-%m-%Y %H:%M:%S')
  </code></pre>
    
    <p>File "C:\Python34\lib_strptime.py", line 500, in _strptime_datetime</p>
  
  <pre><code>tt, fraction = _strptime(data_string, format)
  </code></pre>
    
    <p>File "C:\Python34\lib_strptime.py", line 337, in _strptime</p>
  
  <pre><code>(data_string, format))
  </code></pre>
    
    <p>ValueError: time data '2013/05/24 07:00:00' does not match format
    '%d-%m-%Y</p>
    
    <p>%H:%M:%S'</p>
  </blockquote>