extracting the date, return a dictionary