title: Convert datetime printed by Django, to a different datetime format
body: <p>My web application works with datetime(s) as timestamps, which according to Django's error messages need to be in the following format: <code>YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]</code>.</p>
  
  <p>I display these timestimes on multiple occasions on the web application, where they're displayed in the following format: <code>12. June 2017 10:17</code>.</p>
  
  <p>Now, the user is able to choose and submit the displayed timezones, which are then processed by the server. The server then error's because the format isn't correct.</p>
  
  <p>How do I convert the format printed by Django on the web app (<code>12. Juni 2017 10:17</code>) to the format, required by Django for further processing (<code>YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]</code>)?</p>
  
  <p><em>edit:</em> Currently trying to create a datetime object of the received data, then convert it to the required format.</p>
  
  <pre><code>parsed_timestamp = datetime.datetime.strptime(request.POST['timestamp'], "%y/%m/%d %B")
  </code></pre>
  
  <p>Which results in the following error:</p>
  
  <pre><code>time data '12. June 2017 10:17' does not match format '%y/%m/%d %B'
  </code></pre>