The Partridge Family star David Cassidy was ordered to enroll in a 90-day live-in rehab facility after he pleaded not guilty to his January DUI arrest.
The 63-year-old star, who was sentenced by a Los Angeles judge on Monday, was also sentenced to five years probation and must complete a 9-month alcohol recovery program.
According to TMZ, Cassidy enrolled in a rehab facility last month, but it's still unknown if the judge will give him credit for the time.
Cassidy, who has been arrested for DUI three times in the past three years, was facing up to a year in jail if convicted.
The actor was charged with his last DUI on Jan. 10 after an officer stopped him for making an illegal turn and subsequently failing a sobriety exam.