How long???

If you have ever used Metformin and it gave you diarrhea, how long did it take for your body to get use to it and not have diarrhea anymore??