refactoring DateManager