how to select data to a particular datetime in mysql code example Example: mysql select date from datetime WHERE DATE(datetime) = '2009-10-20'