The best time to eat dinner is after five to six hours after lunch and around 6 pm. After this time, your body’s metabolic rate starts falling. So the thumb rule is to have the maximum gap between your last meal and sleep time.
You should go for small, healthy bedtime snacks for unexpected or small cravings to help you sleep.