The moose likes JSP and the fly likes <fmt:parseDate pattern> problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "<fmt:parseDate pattern> problem" Watch "<fmt:parseDate pattern> problem" New topic
Author

<fmt:parseDate pattern> problem

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 108
Hi,

I need to display the date and time in yyyy-mm-dd hh:mm format.
So i am using



but i am getting:2014-05-13 18:00:16
i don't need the millisecond part...

please suggest.

Thanks
Amarshi


SCJP (97%), SCWCD (95%))
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 48842

m == minute not month

You can't use <c:out> as the attribute of another tag. just use the EL expression.

This message was edited 1 time. Last update was at by Bear Bibeault



[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: <fmt:parseDate pattern> problem
 
Two Laptop Bag