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