0

how to print date format, "February 15th,2015".. by using this

 <c:set var="now" value="<%=new java.u til.Date()%>"/>
 <fmt:format Date type="date" date Style="long" value="${now}"/>

i got February 15,2015

Kavya
  • 29
  • 4

1 Answers1

0

You can do that directly using jstl <fmt:format > as such patterns are not possible .

work around is to do that in the Java and set it to the request or session. And unfortunately even Java dont have any util methods to do that . you can see it here How do you format the day of the month to say "11th", "21st" or "23rd" in Java? (ordinal indicator)

Community
  • 1
  • 1
Santhosh
  • 8,181
  • 4
  • 29
  • 56