get only date from date time in mysql code example Example: mysql get date from datetime WHERE DATE(datetime) = '2009-10-20'