I see. Sometimes I have this too. Regularity is the key for me. When I go to bed at 22:00 latest every day after 3 weeks it becomes a habit and body gets use to it. But then when I'm fine I work to the midnight and after a while I feel tired during the day again.