I have the following code in codeigniter 4:
$recordset=$this->db->select('turno_id, paciente,date_format(fecha, "%W %d-%M-%Y %H:%i") as fecha,observaciones,obra_social,usuario_id' , false)
->where('year(fecha)','year(now())', false)
->where('usuario_id',$usuario_id)
->get("turnos");
That returns the date to me in this way: Wednesday 22-June-2022 23:16
and through Datatables I dump it into a table. How do I get it to return to me in Spanish or translate it into Spanish?