PHP formating date, without using date functions
<p>I am getting date in following format, which is a string:</p>

<pre><code>31_Dec_2010
</code></pre>

<p>Now, I need to convert it to following 2 format</p>

<pre><code>2010-12-31 //(for use in mysql query)
</code></pre>

<p>and</p>

<pre><code>31 Dec, 2010 //(for displaying purpose)
</code></pre>

<p>I <strong>cannot use Date-Time Functions</strong> because I am running code on PHP 4.8</p>

<p>Please suggest me some way, other then "explode" function</p>

<p>Thanks.</p>
