The trick is to force yourself to go to sleep at a reasonable time every night. Some people have actual problems that this won't solve, but it does wonders for most.
Force yourself to go to sleep? How do I learn this power? I mean I can go to bed at the same time every night, if that's what you mean, but sleep is a different story lol