tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Velasco <felix.vela...@kewill.com>
Subject RE: Formatting (Gregorian)Calendar instances?
Date Tue, 03 Feb 2004 12:37:04 GMT
oooops
i wrote too fast. It's myCalendar.time, not date, as Brian pointed.

sorry

-----Original Message-----
From: Felix Velasco [mailto:felix.velasco@kewill.com]
Sent: 03 February 2004 13:26
To: 'Tag Libraries Users List'
Subject: RE: Formatting (Gregorian)Calendar instances?


try:

<fmt:formatDate
       value="${myCalendar.date}"
       var="yyyymmdd"
       type="date"
       pattern="yyyy-MM-dd"/>

that way you'd access the getDate method of the Calendar interface, that
returns the equivalent java.util.Date instance

-----Original Message-----
From: otisg [mailto:otisg@ureach.com]
Sent: 03 February 2004 13:04
To: taglibs-user@jakarta.apache.org
Subject: Formatting (Gregorian)Calendar instances?


Hello,

If I use java.util.Date with the following piece os JSTL, it
works nicely.  However, I need to format an instance of
(Gregorian)Calendar.  I used Google to try to find the answer,
but  found nothing.

<fmt:formatDate
       value="${myDate}"
       var="yyyymmdd"
       type="date"
       pattern="yyyy-MM-dd"/>

Is there a way to format (Gregorian)Calendar instances with
JSTL?

Thanks,
Otis


________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message