date take current date in codeigniter code example Example: current date in codeigniter date('Y-m-d');