Here's a tip for you so you can satisfy your sweet tooth without gaining much calories and extra weight you don't need.
Even if you're at late night, think about fruits before anything else.
Quit the chocolate cake, quit the soda, that heavy-filled sugar apple pie, and try to have a sliced apple with a tablespoon of almond, or try to have fresh fig halves spread with ricotta.
Now you can sleep well, sweet and satisfied that you're still healthy and didn't gain extra weight.