format date in viewattachrev