tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul P Akolkar <akol...@us.ibm.com>
Subject Re: fmt:parseDate
Date Fri, 10 Jun 2005 17:25:08 GMT
On 6/10/05, Ramkumar Krishnan <ramkumar.yadav@gmail.com> wrote:
> Hi Rahul,
>     I have written the code like
> 
> <fmt:parseDate pattern="yyyy-MM-dd HH:mm:ss.S"
> var="parsedDateTime" parseLocale="en_US">
> 2005-06-10 19:11:10.0
> </fmt:parseDate><td nowrap><fmt:formatDate value="${parsedDateTime}"
> pattern="MM/dd/yyyy"/>&nbsp;</td>
>                 <td nowrap><fmt:formatDate value="${parsedDateTime}"
> pattern="hh:mm:ss"/>&nbsp;</td>
> 
> I want to print only the date (06/10/2005) in the first TD and
> 19:11:10 in the second TD.

<fmt:formatDate value="${parsedDateTime}" type="date" dateStyle="short"/>
<fmt:formatDate value="${parsedDateTime}" type="time" timeStyle="long"/>

-Rahul

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message