title: In Django, how to display times with lowercase am/pm in templates?
body: <p>Django's <a href="https://docs.djangoproject.com/en/dev/ref/templates/builtins/#date" rel="noreferrer">date/time formats</a> have a code for displaying the am/pm part of times as either:</p>
  
  <pre><code>a.m.
  </code></pre>
  
  <p>or</p>
  
  <pre><code>AM
  </code></pre>
  
  <p>but not as:</p>
  
  <pre><code>am
  </code></pre>
  
  <p>i.e. lowercase without periods.</p>
  
  <p>How do you render times with lowercase am/pm?</p>
  
  <p>NOTE: I thought of the answer while typing in this question, so I figured instead of scrapping it I'd share my answer in case it's helpful to someone else. </p>