The Red Wings earned an amazing two points Thursday at Joe Louis Arena, two points that could be extremely valuable when the playoff picture is finally sorted out.

Daniel Alfredsson scored with 0.4 seconds left in overtime, as Pittsburgh defenseman Rob Scuderi banked the puck past his goalie, Marc-Andre Fleury, giving the Red Wings a 5-4 victory.

It was Alfredsson’s 17th goal and second of the game, and he and both teams and the sellout crowd had to wait as video review confirmed there was time on the clock.

When it was determined it was a legal goal, delirium was the overriding emotion.

“These are exciting games,” Alfredsson said. “We know every game will go down to the wire now. There’s not going to be any easy wins. Winning two in a row late in games gives you confidence.”

The Red Wings defeated Toronto on Tuesday in thrilling fashion, with Alfredsson scoring the winner, too.

The Red Wings (32-24-13, 77 points) guaranteed themselves at least one point in this game by killing off 3 minutes and 47 seconds of a five-minute David Legwand butt-ending penalty on Evgeni Malkin at 16:14 of the third period.

They then killed off the remaining 1:13 in overtime, goalie Jimmy Howard (39 saves) providing some huge saves throughout the penalty.

“Those guys (penalty killers) did a really good job; they absolutely pushed us and we felt the momentum,” forward Tomas Tatar said. “They (the Penguins) have a really good lineup and are skilled, and they know how to use it to their advantage. Their power play is outstanding, but our penalty kill was outstanding tonight.”

Pittsburgh tied it 4-4 on a Craig Adams goal at 14 minutes 17 seconds of the third period. Brandon Sutter had the puck behind the net and found Adams alone in front.

Todd Bertuzzi’s goal at 12:17 of the third period gave the Red Wings a 4-3 lead, the second of three deflected goals off Penguins defensemen past Fleury.