title: Convert Alphanumerical Date String to Numerical Date String
body: <p>I know there are similar questions out there, but most simply convert the alphanumerical date string to a <code>datetime</code> object with the <code>strptime</code> method, which is not what I'm going for. All I'm trying to do is convert string like so.</p>
  
  <p><strong>Format of Possible Input</strong></p>
  
  <pre><code>December 7, 2015
  October 24, 2018
  </code></pre>
  
  <p><strong>Desired Output</strong></p>
  
  <pre><code>2015-12-07
  2018-10-24
  </code></pre>
  
  <p><strong>How I've Gone About It</strong></p>
  
  <pre><code>""" funding_expiration[0] is equal to strings like 'December 7, 2015' """
  funding_expiration = funding_expiration[0].text.split()
  """ still need to convert Month (%B) to ## (%m) """
  funding_expiration[1] = funding_expiration[1].replace(',', '')
  # add padding to single digit days
  if len(funding_expiration[1]) is 1:
      funding_expiration[1] = funding_expiration[1].zfill(1)
  # format numerical date string
  funding_expiration = funding_expiration[2] + '-' + funding_expiration[0] + '-' + funding_expiration[1]
  </code></pre>
  
  <p>I'm still trying to figure out an efficient way to convert the full name of months into their corresponding numerals. I'm new to Python, so I'm wondering whether or not there's a more efficient way to accomplish this?</p>