title: Python: convert date format YYYY-mm-dd to dd-MON-yyyy with abbreviated month
body: <p>I have a date that is a string in this format:</p>
  <pre><code>'2021-01-16'
  </code></pre>
  <p>And need to convert it to a string in this format:</p>
  <pre><code>'16-JAN-2021'
  </code></pre>
  <p>I am able to get most of it like this:</p>
  <pre><code>x = datetime.strptime('2021-01-16', '%Y-%m-%d')
  x.strftime('%d-%b-%Y')
  </code></pre>
  <p>But the month is not fully capitalized:</p>
  <pre><code>'16-Jan-2021'
  </code></pre>