I need a function that takes any date/time and re formats it to a different format.
e.g.
$date = "31/12/2010 15:00:00" => has a format of d/m/Y H:i:s
so if i need a different format like
$returning_format = "m/d/Y H:i:s" => for America date/time
$newdate = transoform_date($current_format,$returning_format,$date);
the above line should return 12/31/2010 15:00:00
NOTE: I don't need it for this format only coz i can explode it and re-arrange it, so it can accept any format and return the desired format date.