Josh Bailey scored in overtime and Jaroslav Halak made 31 saves as the New York Islanders came from behind in the third period for a 2-1 victory over the Calgary Flames on Thursday night.

Bailey's 11th goal with 18 seconds remaining in extra time came when he was set up alone at the side of the net on a perfect feed from John Tavares.

Until that point, the best chance of overtime was when Calgary's Mark Giordano rang a shot off the goal post with a minute remaining.

Thomas Hickey also scored for New York. Third in the Metropolitan Division, the Islanders remain three points back of the New York Rangers, who were also victorious Thursday.

"I watched a lot of games in this rink and saw a lot of goals. You hope that it's you some day," said the Calgary-born Hickey, who had his parents and several friends in the crowd. "You don't think about scoring on the Flames growing up, but it's a real cool moment for me and my family and my friends, too."

The Islanders have won the first three games of a franchise-record seven-game road trip that will continue in Edmonton on Sunday.

"It's always good to come back into your hometown and get one and it was a big one too," said Isles coach Jack Capuano. "We were looking for a little bit of offence and there's no better way for your defenceman and hometown kid to get it. It got us going, it gave us the surge that we needed."

The winning goal came with 18 seconds remaining in extra time and less than a minute after Calgary's Giordano hit the goal post at the other end.

On a two-on-one down low, Bailey was set up at the side of the net on a perfect feed from John Tavares.

"It's a good play by them," said Ortio, who had 32 saves. "I knew he was going backdoor there but he got it up quick, got off a good shot and I just wasn't quick enough."

Making his second start in a row and just his fourth NHL start on the season, Ortio picked up where he left off on Tuesday when he made 35 saves in a 2-1 loss to Los Angeles.

"Orts was real, real good. He's tracking the puck real well, he's solid," said Flames coach Bob Hartley. "It's too bad. I felt we deserved better but that's the way it goes."

Also excellent on the night was Halak, who had 31 stops. The 30-year-old has started and won the first three games of the Isles franchise-record seven-games road trip, stopping 88 of 90 shots.

"Your goalie has to fight for his space," said Capuano. "I'm not a goalie coach but I do know if you sit back, you're in trouble. You've got to get out, you have to challenge, you have to hack and whack at certain times in front to protect your area and he's done that."

Third in the Metropolitan Division, the Islanders remain three points back of the New York Rangers, who were also victorious Thursday.

Jiri Hudler scored for Calgary. The slumping Flames are 1-5-1 in their last seven.