I forgot a password for iPhone 5C

I have not been using my iPhone 5C for a long time and have forgotten a password for it. How to use it now? I left it for a while without power and the only thing that he had forgotten was the time, so it is written that the next attempt to enter a password will be done in 49 years.

What to do?