date +1 codeigniter code example
Example 1: date between query in codeigniter
$this->db->where('sell_date BETWEEN "'. date('Y-m-d', strtotime($start_date)). '" and "'. date('Y-m-d', strtotime($end_date)).'"');
Example 2: current date in codeigniter
date('Y-m-d');