Refactoring of date functions, scales for years.