Possible Duplicate:
Convert one date format into another in PHP
Convert date format yyyy-mm-dd => dd-mm-yyyy
I want to display the date and time in dd-mm-yyyy hr:min:sec format. Currently it displays as 2012-10-24 16:25:49
The $row['for_dataw'] - is the date and time stored in the mySQL database. What do i do to make it display the way i want it?
print("
<tr><TD>
<A HREF=\"".$_SERVER['PHP_SELF']."?wid=".$row['id']."\">".$this->ptitle."</A></TD>
<TD ALIGN=\"center\">reactions: ".$this->react."</TD><TD ALIGN=\"center\" WIDTH=\"20%\">".$row['for_name']."</TD>
<TD ALIGN=\"center\" WIDTH=\"20%\">".$row['for_dataw']."
</TD></tr>\n\n");