I too have problems with sleeping. More with the schedule than with the number of hours but it does affect my health.
Part of the reason why I don’t sleep regularly is because I don’t have another job besides freelancing. On top of that, I’m on a gap year (therefore no studies either) so most of the time I can sleep whenever I want. Both a blessing and a curse.
I’m continuously getting better at it, though. No point in being rich if you’re not healthy!
By the way - for all you night owls that like to work on a computer after it’s dark: I highly recommend a program called F.lux. It claims to filter out the blue light that is emanated from your screen - which has been shown to mess up with the sleep hormone (it’s melatonin, I think). As far as I understand, it replaces it with red light, which allegedly is easier on the eyes. There is a mobile equivalent called Twilight. I use them every day and I can really notice a positive effect both on my eyes and mind.
Note: I’m in no way not affiliated with either of the products mentioned above – simply recommending them based on my experience.