Invision/AP 1 / 5

SALT LAKE CITY (AP) -- Former child television star Gary Coleman has pleaded guilty to a misdemeanor criminal mischief charge related to a domestic violence incident last April in Utah.

RELATED: Which stars got in trouble with the law in 2009?

In a deal with the prosecutor, Coleman entered the plea at a hearing Monday, his 42nd birthday, in Santaquin, 65 miles (105 kilometers) south of Salt Lake City.

RELATED: How much did one fan pay for Gary's sweatpants?

Court clerk Jane Swan says the original charge of domestic violence assault was dropped.

Judge Sharla Williams sentenced Coleman to 31 1/2 days in jail. The "Diff'rent Strokes" star will serve the time only if he fails to complete a domestic violence course and pay a $595 fine.

RELATED: See more photos of Gary Coleman

Coleman was arrested Jan. 24 at his Santaquin home on a warrant for failing to appear in court. He spent a night in jail before a fan paid his $1,725 bail.