Does anyone know how to get only the date element from the datetime value?
For example: I want to get only 2005-01-23 from 2005-01-23 10:00:00.
This is how I try to do it, but did not work:
$gamerecord = mysql_query ("Select username,gameid, DATE(cust_readingdate),cust_readingpoint from cust_reading where username = 'do' and gameid = '10' ");
Thanks
zoya