refactored date appending