How long does it take for alcohol to get out of ur system?

Been feeling dehydrated as fuk lately. I'm thinking it's a withdrawal symptom from going sober after being an alcoholic for for years.

I eat watermelon everyday and drink a good amount of water

When does this end