CMS-3506 Convert DateMidnight to LocalDate.