Not long, only a few hours at the very most. The only time it takes days is if you were dehydrated to collapse and being hospitalised, like in a heatwave.
Basically, if you're pissing and it's pale yellow to clear, you're drinking enough. If you're not pissing and it's dark and painful, you're not drinking enough.
Lots of experience with dehydration and rehydration in the Army