I am displaying some records from mySQL from php and one of the fields I echo out is a date field but it currently prints out the time at the end to.
How can I just
The best way would be to do this on the DB level:
SELECT CAST(yourfield AS DATE) FROM .....
In PHP you can simply use this:
$parts = explode(' ', $field); $datePart = $parts[0];