refactor date stamp