There is a rule of thumb not to eat two hours before going to bed. This is often misunderstood to mean that you can’t eat anything at all. Not true. You shouldn’t eat a full, filling meal too close to bedtime, but a small, healthy snack is often okay.
It is possible to include a nighttime snack, especially on workout days, to prevent cravings and to get a good night’s sleep. What are your total calorie needs? Set aside about 200 calories for an evening snack. Then fill your kitchen with healthy choices for these 200 calories. Examples: a bowl of cereal/milk, hot chocolate, yogurt, 1/2 sandwich, fruit. Keep track of exactly how much you can have of each snack for 200 calories so you don’t fool yourself or make bad decisions at the last second.
Now you have set limits and have a plan. If you are willing to fix a snack, sit at the table and eat it (without watching TV, etc.) then you are probably truly hungry and not just eating out of boredom.