How can I retrieve data from the database by querying records between two dates using CodeIgniter\'s activerecord?
if you date filed is timestamp then this is the easy way to get record
$this->db->where('DATE(RecordDate) >=', date('Y-m-d',strtotime($startDate))); $this->db->where('DATE(RecordDate) <=', date('Y-m-d',strtotime($endDate)));