For me, the magic trick was getting up the same time every day even in the weekends (almost no exceptions). After a few weeks of zombie-state I got naturally tired at an appropriate time - and now, I go to bed when I feel sufficiently tired.
Also, I try to keep mentally far below full tilt the last 60-90 minutes before my expected bedtime.