1 select * from sells where date_sub(curdate(),interval 14 day)<= date(created_at)2 select * from sells where to_days(now())-to_days(created_at) < 14