I've been getting datetime value from the database. It's working fine but the value the is showing has a .0 on the end. Something like this:
"2018-10-12 12:17:36.0"
This is my code:
<c:foreach items="${paymentInfo}" var="payment">
${payment.date_paid}
</c:foreach>
I tried the format date from this answer and received this error:
javax.el.ELException: Cannot convert [2018-11-02 15:21:27.0] of type [class java.lang.String] to [class java.util.Date]
So I don’t believe this question is a duplicate of that one.
This is the database: