Refactored creation date code with shared library