Robinson Cano’s year was thought to be done. Instead, he’s doing his best to extend the Mets’ season.

Playing in his sixth game since returning from a torn hamstring which kept him out one month, Cano went 2-for-3, with a double and two runs, in the Mets’ 3-2 win over the Diamondbacks on Tuesday night at Citi Field. Upon returning from his third trip to the disabled list this season, the 36-year-old has registered eight hits in his first 17 at-bats.

Though Cano has endured the greatest struggles of his career in his return to New York, the second baseman is doing his best to redefine his first season with the Mets.

On June 27, Cano held a once-unthinkable .222 batting average. Now, the career .303 hitter has raised his average to .262, having hit .317 since the All-Star break.

J.D. Davis was one of the biggest reasons the Mets climbed back into postseason contention, but one of the team’s most important offensive weapons has spent much of September as a spectator.

Davis didn’t play Tuesday, marking the fourth time in the past nine games that he began the day on the bench. Callaway cited his desire to give the outfielder/third baseman rest when facing a right-handed starter.

“He’s done great against righties, too, and done great at Citi Field. You never want him to sit,” Callaway said. “You just have to sit him every now and again to keep him where he needs to be.”

This season, Davis’ splits are nearly identical, with the 26-year-old proving to be far more balanced than thought to be upon being acquired in the offseason. Davis, who sports the team’s second-highest batting average, has hit .303 against both southpaws and righties, and held a slightly higher OPS (.883) against the latter.

Benched for the second time during the Mets’ current homestand, Davis has batted .347 with 13 homers in Queens this year, posting the sixth-best home OPS (1.047) in the National League. Meanwhile, Brandon Nimmo was batting .214 (3-for-14) with seven strikeouts since returning from a three-month absence.

The Mets recalled pitcher Chris Mazza from Triple-A Syracuse. The 29-year-old rookie has gone 0-1 with a 7.71 ERA (11 ²/₃ innings) in six appearances in the majors this season.

Purchase event tickets to The Amazin’ 1969 New York Mets: A World Championship for the Ages presented by The Paley Center for Media and New York Post. Enter promo code: NYPOST to unlock tickets only available for Post readers.