David Letterman David Letterman

A 48 Hours Mystery producer entered a plea deal Tuesday in the David Letterman extortion case that entails six months in jail.

Robert "Joe" Halderman pleaded guilty to second-degree grand larceny in a Manhattan court. Under the deal, he will also get five years' probation and must perform 1,000 hours of community service.

Manhattan District Attorney Cyrus R. Vance Jr. said Halderman's guilty plea sent a strong message about the city's intolerance of extortion. He also applauded Letterman. "By not giving in to the defendant's extortionate demands for millions of dollars, and instead taking the courageous step of reporting the crime to law enforcement, Mr. Letterman risked the disclosure of certain aspects of his private life," Vance said in a statement. "I commend Mr. Letterman for making the difficult but unquestionably right decision to report this crime to my office and thank him for his full and complete cooperation throughout the investigation and prosecution of the case."

David Letterman admits having affairs, claims extortion

Letterman also thanked the prosecutors by name during the taping of The Late Show Tuesday. "I'd never been involved in anything like this in my life, and I was concerned and full of anxiety and nervous and worried. And the people in the District Attorney's office said, 'This will be handled professionally, this will be handled skillfully, and appropriately,'" Letterman said. "Well, the matter was resolved today, and they were exactly right — it was handled professionally, skillfully and appropriately."

David Letterman felt "threatened" over extortion attempt

Lawyer for accused David Letterman blackmailer denies extortion

David Letterman extortion case expected to go to trial