How can I deal with insomnia?

I am 31 years old and for a long time now, I have suffered with insomnia. ​I have a terrible sleeping pattern and can’t seem to sleep at night, yet when I go to work the next day, I feel exhausted and in dire need of sleep. When I go home, the sleep somehow disappears. I sleep perhaps about two to three hours every day. What can I do, as I feel tired mostly during the day and it might affect my work.
no image
Dr. Rachna Pande