I want to convert 26-Feb-2013 type date fomat into 26-02-2013 format using php
I can do this in long way as following
$date='26-Feb-2013';
$datew=explode('-',$date);
$mounth=$datew[1];
if($mounth=='Jan'){
$mounth=='Jan'
}
elseif($mounth=='feb'){
$mounth=='Feb'
}
and again using implode function to convert 26-02-2013 format
but i want to know any easy way to do this
is there any way to do this?
1 Answer