I have the following output into a variable 05-08-2003
now i want to turn it into 2003-08-05
how can i do that?
dan
One way is
list ($d,$m,$y) = explode('-', $mydate); $mydate = "$y-$m-$d";
hth