BUFFALO, N.Y. — Summer is coming to a close, which means it will be back to a regularly scheduled bedtime for kids across New York.

That can be a struggle for some parents to make sure kids are getting enough rest before school starts.

University at Buffalo sleep specialist Dr. Alberto Monegro says it's important to start a routine now because it takes three or more days to get your internal clock back on track.

"Starting a routine sooner than later is recommended," said Dr. Monegro. "Make sure they're in a room that's a good temperature, dimly lit, and have as little distraction as possible."

The American Academy of Sleep Medicine notes that children aged 6-12 need nine to 12 hours of sleep a day and those aged 13 and older need around eight to 10 hours. Dr. Monegro says establishing healthy sleep habits can make the transition back to class easier for parents now and kids in the long term.

"Sleep is essential for a child's growth and development," said Dr. Monegro. "When there is poor sleep, there's a risk of obesity, anxiety, poor attention and hyperactivity. So it's important to set an age-appropriate bedtime for your child and stick with it as closely as possible, even on the weekends."

According to Dr. Monegro, a healthy sleep schedule is as important to a child's success in school as what they eat and the supplies they bring to class.