When did your LO start sleeping through the night?

KT
Were they breastfed or formula fed? If they do sleep through or most of the night what is your secret ?!