title: Convert date from YYYYMMDD to DD/MM/YYYY format in PHP
body: <p>I've a MySQL database table in which the date is stored in YYYYMMDD format. Eg: 20121226.</p>
  
  <p>I want to display this date in DD/MM/YYYY format. Eg: 26/12/2012</p>
  
  <p>What I came up with is to use <code>substr</code> to extract the day, month and year separately.
  I would like to know if there's an easier way to do this.</p>
  
  <p>Also, is there a way to convert this date to "26 December 2012" format without the need to write separate code?</p>