title: Django: how to get format date in views?
body: <p>I need to use SHORT_DATETIME_FORMAT in view.</p>
  
  <pre><code>def manage_list(request):
  
      user = User.objects.filter().order_by('date_joined') 
      usrs = [] 
      for usr in user: 
          usrs.append({
              _('First name'):  usr.first_name, 
              _('Last name'):   usr.last_name,
              _('Email'):       usr.email,
              _('Active'):      usr.is_active,
              _('Superuser'):   usr.is_superuser,
              _('Staff'):       usr.is_staff,
              _('Joined date'): usr.date_joined.strftime(SHORT_DATETIME_FORMAT),    
          }) 
  
      data = simplejson.dumps(usrs, indent=4)
      return HttpResponse(data, mimetype='application/json')
  </code></pre>
  
  <p>usr.date_joined has a type of "date field" I think. I want to format this data according to django locale. so this string probably should help. I know that there's a template filter which does that I wan, but I want to format usr.date_joined <strong>in view only</strong> - saving django choosen locale. </p>
  
  <p>If there's any other methods to do this please provide examples. in the end I just wanna have a formated date according to django locale which shows only date and time, I think this constant should do what the name says..</p>