Changing DateTime to LocalDate to represent date