mysql select by date on datetime field code example Example: mysql select date from datetime WHERE DATE(datetime) = '2009-10-20'