changed clases to parse date strings into date objects