The man who tried to blackmail David Letterman for $2 million last year pleaded guilty to grand larceny today.

Back in October, Letterman publicly shared that someone had tried to blackmail him over affairs he had with women who worked on his show, a fact which he admitted was true. The blackmailer in question was 52-year-old former CBS News producer Robert "Joe" Halderman, who lived with Stephanie Birkitt, one of the women Letterman had an affair with. Halderman had worked for the "48 Hours" news program.

Halderman, who pleaded not guilty in October, accepted a plea bargain and was sentenced to six months in jail today. He also received five years of probation and 1,000 hours of community service.

"I have great remorse for what I have done," Halderman told the court.

Here's Letterman's surprising--and pretty funny--confession: