"Know date" refactor

the complex method to improve the code quality and make it more
readable