parse date fields