1

I am using JSTL tags to display views

    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

my expression

<td><c:out value="${project.projectStartdate}"/></td>

but it Displaying in YYYY-MM-DD but i want in the format DD-MM-YYYY

1 Answers1

5

Can you try this:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 
<fmt:formatDate pattern="dd-MM-yyyy" value="${project.projectStartdate}" />
akhil_mittal
  • 23,309
  • 7
  • 96
  • 95
  • what is the difference between <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%> <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> –  Aug 26 '15 at 09:28