I used to be extremely overweight (lost 230#). In addition to being an overeater, I was a big late night snacker. I still have the urges. To keep me from doing so I try to eat dinner within 3 of 4 hours of going to bed. And I brush, floss, and rinse within an hour after dinner. This helps me from eating anything later because I don't want to go through my dental hygiene 'ritual' again. I just drink water between then and bed.