Stan Daniels, who won Emmys as co-creator and executive producer of “Taxi,” and writer-producer of “The Mary Tyler Moore Show,” died April 6 of heart failure in Encino, Calif. He was 72.

Services will be held Thursday at 2:00 p.m. at Mount Sinai Memorial Park, Los Angeles.

Daniels had suffered from frontotemporal dementia for about five years.

For his work in television, Daniels received eight Emmy awards and was nominated an additional six times.

Daniels wrote for shows such as “The Dean Martin Show” and “The Bill Cosby Show” before starting as a writer (with Ed Weinberger) and producer on “The Mary Tyler Moore Show” with exec producer James L. Brooks. The much-lauded show ran for seven seasons from 1970-77, during which time Daniels also co-created and wrote for Cloris Leachman spinoff “Phyllis.” He co-created the Brenda Vaccaro series “Lily,” and co-wrote the African-American Cinderella TV movie “Cindy” with Brooks.

In 1978 he created “Taxi” with Brooks and David Davis, serving as exec producer and also writing and directing the sitcom, which ran for five seasons. After “Taxi,” Daniels produced, wrote and directed shows including “The Kid,” “Glory! Glory!,” “For Richer, For Poorer” and “The Substitute Wife.”

Born in Toronto, Daniels won piano competitions as a teenager and attended the U. of Toronto. He received a fellowship to study at Oxford and while working on his doctorate there, wrote and directed a musical revue which was produced at the Edinburgh Festival, featuring Dudley Moore and Alan Bennett.

After Oxford, he started writing for television, first in London, and then for the CBC in Toronto, where he was a regular contributor to “This Hour Has Seven Days,” acting and writing in satirical sketches.

For the theater, he composed music and lyrics for Broadway musical, “So Long 174th Street” with a book by Joseph Stein, and his musical version of the Bernard Slade play, “Same Time, Next Year” was produced in Budapest in 2001, and is currently running there.

He is survived by his wife of 50 years, Alene; children, Dari, Shelley, Alan and Larry, and two grandsons.

Donations may be made to the United Jewish Appeal or the American Heart Assn.