title: Django Change Date Format from YYYY-MM-DD HH:MM to MM/DD/YYYY
body: <p>I'm trying to pass input from a template to a query in my view, but if the date is not passed in Django's default date format YYYY-MM-DD then it throws an error.</p>
  
  <p><strong>[u"'11/11/2012' value has an invalid format. It must be in YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."]</strong></p>
  
  <p><strong><em>template.html</em></strong></p>
  
  <pre><code>&lt;form method="GET" action="/BusComm/interactions"&gt;
      &lt;div style="width: 100px; float:left"&gt;
          &lt;p&gt;To Date:&lt;/p&gt;
      &lt;/div&gt; 
      &lt;div style="width: 200px; float:left"&gt;
          &lt;input type="date" Placeholder="mm-dd-yyyy" name="date_to" id="id_q" value="{{ query }}" float="right"&gt;
      &lt;/div&gt;
      &lt;input type="submit" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p><strong><em>View.py</em></strong></p>
  
  <pre><code> def interactions(request):
      today = datetime.now().date()
      table = interactionsTable(Interactions.objects.all())
  
      if request.GET.get('date_from'):
              date_from = request.GET.get('date_from')
  
              table = interactionsTable(Interactions.objects.filter(date__range=[date_from, today]))
              return render(request, 'BusComm/interactions.html',{
              'table': table,
          })
  </code></pre>
  
  <p>The <strong>interactionsTable(Interactions.object.filter())</strong> line is the one that throws the error.</p>
  
  <p>My question is how can I change the date format in Django to accept MM/DD/YYYY instead of YYYY-DD-MM?</p>