want select a date column values -12hrs data code example Example: mysql get date from datetime WHERE DATE(datetime) = '2009-10-20'