When does one start letting their child sleep through the night?

Im a first time mom so just curious to when are you suppose to stop waking them up ever 2-3hours for feeding? Like how many months? Or when did your child start sleeping through the night and no longer needed feeding every 2-3 hours?