Separating different date formats in different pieces