i have checked many things like the default format of the date in the library.
$config['grocery_crud_date_format'] = 'sql-date';
I tried different web browsers
this is my table and how i update the date and save it to the DB:
$datestring = "%Y-%m-%d"; $time = time(); $data = array( 'Attendence_date_daily' => mdate($datestring, $time), 'Check_in_time' => null, 'Check_out_time' => null, 'Attendence_status' => null, 'Employee_comment' =>null, 'Deducted_today' => 0, 'user_id' => $row->id );
this is how i created the table
public function edit_daily_record() { $crud = new grocery_CRUD(); $crud->columns('daily_record_id','Attendance_date_daily','Check_in_time','Check_out_time','Attendence_status','Employee_comment','Deducted_Today','user_id'); $crud->set_table('daily_attendence_record'); $crud->display_as('Attendance_date_daily','Date') ->display_as('user_id','Employee'); $crud->set_subject('daily record'); $crud->set_relation('user_id','users','username'); $output = $crud->render(); $this->_example_output($output); }
where 'Attendance_date_daily' is of type date in mysql DB . All fields are shown correctly except this date
'daily_record_id' is auto increment PK
'user_id' is a FK
can you please help me with this problem?
image 1