changed parseDate to extractDates