Posted on 2004-09-01
I have searched several past posts on this subject but none really answer my question.
I printed out a date field to the php report I created. The date shows with time like this:
I want to get rid of the time and also format it like this
08-25-2004 where the date is mm/dd/yy
Here is my code in my php page that spits out the time:
$regdate = $row->CreateDate;
print("<td width=\"10\" class=\"bodyblack_l\"> </td><td class=.$strRowClass.><b>$count)</b> <b>$row->FName $row->LName</b></td><td align=\"center\" class=\"checkbox\"> $p</td><td class=\"strRowClass\">$regdate</td><td width=\"10\" class=\"bodyblack_r\"> </td>\n");