changed the date format and added function to return the date 7 days from the date set