sameple 1: select * from table where datediff(createdate, NOW())=’0′;”);

sameple 2: select * from table where createdate>subDate(NOW(), ‘1’);

 

reference: http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html

,
Trackback

no comment untill now

Sorry, comments closed.