title: PHP - Converting a string into various date formats
body: <p>I am new to PHP and cannot figure out the best method to convert two strings I have from URL params.</p>
  
  <p>I would like to convert:
  "August 2010" to ---> "2010-08-%"</p>
  
  <p>and also:
  "2010" to ---> "2010-%-%"</p>
  
  <p>Thank you in advance!</p>