March 4, 2014 | 3:58pm ET

The Philadelphia Flyers have acquired defenseman Andrew MacDonald from the New York Islanders in exchange for a 2014 third-round draft pick and a 2015 second-round draft pick.

MacDonald, 27, is in the final year of his contract and is scheduled to become an unrestricted free agent July 1.

In 63 games with the Islanders this season, MacDonald has registered four goals and 20 assists for 24 points, along with 34 penalty minutes.

The native of Judique, Nova Scotia, has played in 295 career NHL regular-season games, all with the Islanders, and has accumulated 17 goals and 72 assists for 89 points, to date, with 139 penalty minutes.

He was originally drafted by the Islanders in the sixth-round (160th overall) of the 2006 NHL Entry Draft.