title: Django string to date format
body: <p>I want to convert my string date to django date format. I tried a method. but did not work.  </p>
  
  <pre><code>date = datetime.datetime.strptime(request.POST.get('date'),"Y-mm-dd").date()
  </code></pre>
  
  <p>I got this error.  </p>
  
  <pre><code>time data '2014-04-07' does not match format 'Y-mm-dd'
  </code></pre>
  
  <p>what 's wrong in my code.</p>