title: Format date from yyyymmdd to Y-m-d with PHP
body: <p>This question shows how to do it with SQL (<a href="https://stackoverflow.com/questions/19829818/sql-date-format-conversion-from-intyyyymmdd-type-to-datemm-dd-yyyy">SQL date format conversion from INT(yyyymmdd) type to date(mm/dd/yyyy)</a>), how can I do it with PHP?</p>
  
  <p>I want to convert dates from something like 20141127 to 2014-11-27 and I don't knwo if there is a build in function, or any usage of the php dates function to achieve this.</p>
  
  <p>Thank you</p>