how to convert ddmmyyyy to mm dd yyyy in php
<p>how to convert string  <strong>130812</strong> to <strong>August 13 2012</strong> and string <strong>14082012</strong> to <strong>August 14 2012 in php</strong></p>

<p>for files </p>

<pre><code>$FileForTime= MR_20121018_V002.htm;  
$retDate = date ("F d Y", strtotime(substr($FileForTime,3,8)));  
</code></pre>

<p>out put =<strong>October 18 2012</strong></p>

<p>but for files</p>

<p>LedgerV002130812.htm<br>
Demat14082012D004.htm<br>
which are in ddmmyy and ddmmyyyy format respectively</p>

<pre><code>$retDate = date ("F d Y", strtotime(substr($FileForTime,10,6)));

$retDate = date ("F d Y", strtotime(substr($FileForTime,5,8)));
</code></pre>

<p>output not coming??</p>

<p>not getting time stamp for extracted dates.</p>
