LOS ANGELES -- Sherwood Schwartz, the writer-creator of two of the best-remembered TV series of the 1960s and 1970s, "Gilligan's Island" and "The Brady Bunch," has died at age 94.

Great niece Robin Randall said Schwartz died early Tuesday at Cedars-Sinai Medical Center, where he was being treated for an intestinal infection and underwent several surgeries. His wife, Mildred, and children had been at his side.

Sherwood Schwartz and his brother, Al, started as a writing team in TV's famed 1950s "golden age," said Douglas Schwartz, the late Al Schwartz's son.

"They helped shape television in its early days," Douglas Schwartz said. "Sherwood is an American classic, creating 'Brady Bunch' and 'Gilligan's Island,' iconic shows that are still popular today. He continued to produce all the way up into his 90s."

Sherwood Schwartz was working on a big-screen version of "Gilligan's Island," his nephew said.

Douglas Schwartz, who created the hit series "Baywatch," called his uncle a longtime mentor and caring "second father" who helped guide him successfully through show business.

Success was the hallmark of Sherwood Schwartz's own career.

Neither "Gilligan" nor "Brady" pleased the critics, but both managed to reverberate in viewers' heads through the years as few such series did, lingering in the language and inspiring parodies, spinoffs and countless standup comedy jokes.

Schwartz had given up a career in medical science to write jokes for Bob Hope's radio show. He went on to write for other radio and TV shows, including "The Adventures of Ozzie and Harriet."