Time to stop breastfeeding

KS
I've been EBF my baby for 28 weeks. I need to stop for several reasons. My question is, how do you stop?? He does drink breastmilk from a bottle, but won't take formula. Is there a special formula that breastfed baby's will like?  I've tried the major brands. If any of you have had success weaning a certain way, I would love to know about it.  TIA