James Corden and Idina Menzel James Corden and Idina Menzel

James Corden continues to dominate the late-night viral video scene!

He closed out Thursday's show by doing a rendition of the Dirty Dancing hit single "(I've Had) The Time of My Life" with Idina Menzel and a team of backup dancers.

James Corden and Jon Cryer do a perfect Pretty in Pink dance

We know Corden doesn't pass up an opportunity with a great singer: His Mariah Carey carpool sing-along was epic.

Toward the end of the show, he asks Menzel, "Idina, have you had a good night?" "I've had a great night!" she replies. "I've had the best time. Thank you. Have you had a good night?" "I've loved it. I've really enjoyed it," he gushes. "I mean, in many ways, I could say that..."

At which point he pulls out a microphone and croons, "...I've had the time of my life."

Kumail Nanjiani was also on the show, but based on his confused face when the camera pans back to him, he wasn't part of the act!

 <p>Kumail Nanjiani</p><p>

Kumail Nanjiani

Watch the video: