Co sleeping help

Virginia
Those of you that co slept with your baby at what age did you get them to start sleeping in their own bed and how did you do it?