title: Changing Datetime Format in Python
body: <p>how do I change format to DD/M/YYY H:M for this line:</p>
  
  <pre><code>ax1.set_title('from {} to {} \n'.format(startTime, endTime, fontsize=22))
  </code></pre>
  
  <p>cause currently when I run the module it is displayed this way: YYYY-MM-DD H:M:S</p>
  
  <p>This is my code:</p>
  
  <pre><code>linematchregex = re.compile('(\d+/\d+/\d+ \d+:\d+),(\d+\.\d+)')
  
  startTime = datetime.strptime(raw_input('please enter start time :'), '%d/%m/%Y %H:%M'
  endTime   = datetime.strptime(raw_input('please enter end time :') , '%d/%m/%Y %H:%M')
  
  
  **ax1.set_title('from {} to {} \n'.format(startTime, endTime, fontsize=22))**
  ax1.set_ylabel('Temp')
  ax1.set_xlabel('Time')
  plt.show()
  </code></pre>