如果是查询语句的话 $startTime=date("l",mktime(0,0,0,7,13,2010))); 获得一个时间戳$endTime=date("l",mktime(0,0,0,7,14,2010))); select * from 表名 where ModDate>$startTime and ModDate<$endTime
select * from table where ModDate LIKE 2010-04-13%;2010-04-13 可以在php date() 处理;
date("Y-m-d",$ModDate) 年-月-日
$startTime=date("l",mktime(0,0,0,7,13,2010))); 获得一个时间戳$endTime=date("l",mktime(0,0,0,7,14,2010))); select * from 表名 where ModDate>$startTime and ModDate<$endTime
DATE_FORMAT(ModDate,'%Y-%m-%d')='2010-04-13'