Dustin “Screech” Diamond just got sprung from jail a month early, due to his handiwork with a mop and bucket … TMZ has learned.

Officials at Ozaukee County Jail in Wisconsin tell us Screech was released early Monday morning after serving just under 3 months behind bars for carrying a concealed weapon and disorderly conduct.

We’re told he was able to knock a month off his sentence by cleaning floors in the jail, and doing laundry.

Screech was convicted for stabbing a man during a bar fight back in December 2014.

Also On RadioNOW 100.9: