Perhaps you could try encoding the date values into some ordinal values (like 1.7.2019 as 0, 2.7.2019 as 1, etc.) to preserve some sort of order within the dates or one-hot-encoding if you’d prefer to leave the dates as categorical values.