modified the date format for history