pivot different dates into rows with date_type field