title: formatting dates with or without a leading zero in php
body: <p>How would you convert a datestring that will be formated like...</p>
  
  <p><code>m/d/yyyy H:i:s</code> or <code>mm/dd/yyyy H:i:s</code>...</p>
  
  <p>and format it like... <code>yyyy-mm-dd H:i:s</code></p>
  
  <p>I can format either of the two inputs into my desired format, but not both.</p>