I can’t sleep at night

It’s been nearly 100 days that I couldn’t sleep early at night. I always stay up late. I don’t want to admit it but this is truly insomnia. Most of the time, I just surfing internet without any purpose on bed. This is a bad habit but I can’t stop doing it. How can I begin to fall asleep early?
留言
B1 Sorry for the late reply. I record my days of staying up because I wanna know how many days I haven’t reached my setting criteria and take it as a warning.