Created function ton append date-time to a string