I have a spring mvc project and Im displaying event start and end times on a jsp page. The events are stored in my database as localdatetime and I am retrieving them from my database and then displaying them. I am displaying them on my jsp page like this
<c:forEach items="${eventList}" var="events">
<tr>
<td>${events.getId()}</td>
<td>${events.getStart()} - ${events.getEnd()}</td>
</tr>
</c:forEach>
They are displaying like this 2019-04-28T11:30 - 2019-04-28T14:30
Is it possible to display the date and time separately?
EDITED: This is the code for my backend, where i am getting them events from my database
@RequestMapping(value = "/events", method = RequestMethod.GET)
public String getEvents(Model model) {
List<Event> events = eventService.findAll();
model.addAttribute("eventList", events);
return "events";
}
The problem is how can i display them as the start/end as a separate date and time when they being added to the model as a localdatetime?