The former treasurer of the Selden Fire Department has admitted in court that he stole more than $50,000 from the department, prosecutors said.

Michael Ozer, 30, now of Winter Haven, Florida, pleaded guilty Tuesday to a misdemeanor larceny charge.

Because he made full restitution to the department, he was sentenced to a conditional discharge by state Supreme Court Justice Fernando Camacho in Central Islip.

A spokesman for the Suffolk County district attorney’s office said Ozer withdrew money from the department’s bank account periodically from March 2013 to October 2014 and used it for regular living expenses.

At times, he used a department-issued ATM card to make withdrawals, prosecutors said.

“Restitution was made and everybody’s whole,” said Ozer’s attorney, Eric Sachs of Bellmore.

advertisement | advertise on newsday

Sachs said management issues in the fire department enabled his client to do what he did.

A fire department statement said the fault for the theft lay entirely with Ozer.

“These actions by the accused are a betrayal of both the public trust and the trust of his fellow firefighters and are not indicative of the standards of the Selden Fire Department,” the statement said. “It is important to note that at no time were taxpayer dollars involved in this matter — the issues in question pertained to the Fire Department budget, which is funded by private donations.”