Spongebob and the squidasaurus rex

Airdate: March 26th 2004

Synopsis
Spongebob and the gang accidentally found a broken time machine and used it to go back to the medieval times. They found a squidasarus rex and it stomped on the time machine, causing them to be trapped in time

Trivia

 * This episode was originally meant to air in 1999 but got pulled due to a graphic plot