title: Need to insert - into a variable holding a date?
body: <p>I have a date variable with the format</p>
  
  <p><code>2008 12 29</code></p>
  
  <p>to have it correctly display from within my database app I need the format to be</p>
  
  <p><code>2008-12-29</code></p>
  
  <p>Is there a way to simply add the <code>-</code> into the string or replace the spaces with <code>-</code>?</p>
  
  <p>I am using PHP and the date is stored in <code>$release_date</code></p>