• Post Reply Bookmark Topic Watch Topic
  • New Topic

Date and JSP

 
Wilson Gordon
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSP, is there a way to access each part (month, day, year, hour, minute) of a Date object easily?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the JSTL <fmt:formatDate> action, specifying a pattern for the portion of the date in which you are interested.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!