Date formatting and looping function

- Data manipulation client-side when page is refreshed to format date
and eventually remove duplicates.  Best practice??