Refactored created at date code.