Weaning off

Mida • Blessed and highly favored
So I have been trying to stop breastfeeding my 15months old because I am currently pregnant and it hurts to continue to breastfeed him. Today is day 3, so far so good. The nights haven't been so good because he uses my nipples as a pacifier lol, so its harder to get him back to sleep. Hopefully by the end of the week, he will be able to completely sleep thru the night without wanting my boobs. How long did it take you ti completely stop breastfeeding