added in a way to get the dates

still only gives the first value, works but nothing shows up!