I want to hide the time frame (00:00:00) which is appearing in the result of the query below in the columns "Start Date" and "End Date".
Result of the query is displaying this way:
Department City/University Start Date End Date
1. Building Science Miami 2011-12-28 00:00:00 2012-02-03 00:00:00
The code looks like this:
$date_start = firstOfMonth();
$date_end = lastOfMonth();
$query = " SELECT Department, `Start Date`, `End Date` FROM facultytravel WHERE Country='".$country."' AND `Start Date`<='".$date_end."' AND `End Date`>='".$date_start."' ORDER BY `Start Date` ASC";
$result = mysql_query($query);
$num = 1;
while($row = mysql_fetch_array($result)){
print "<tr>";
print "<td>".$num.". ".$row['Department']."</td>";
print "<td>".$row['City/University']."</td>";
print "<td>".$row['Start Date']."</td>";
print "<td>".$row['End Date']."</td>";
print "</tr>";
$num++;
}