Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Formatting Date  RSS feed

 
Ankit Chandrawat
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to format a date in Day,DD Month Year format on JSP using JSTL. The date I am getting on JSP is in the Long format representing Milliseconds.

TIA,
Ankit Chandrawat
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66144
143
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the long value to create a java.util.Date in the controller and attach that to the request as a scoped variable. Then on the JSP, use the <formatDate> tag.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!