I’ve done the rehab thing 4 different times. The first three didn’t do much for me, but the last one did. Of the 4 trips, the longest one was around 90 days. After that I did the halfway house thing for a while.
It’s not easy, but it definitely can be done. From what I’ve seen even when people don’t seem to stay clean afterwards, it still helped them to go.