My model
public function get_payscale() {
$this->db->from('payscale P')->join('employee E','E.employee_id = P.employee_id ');
$this->db->where('P.payscale_date',date('Y-m'));
return $this->db->get()->result_array();
}
I want to compare only month and year with the db which in the format y-m-d, where i want only to retrieve the y-m using where clause. any help would be appreciated