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:[EMAIL PROTECTED]
Sent: 03 February 2004 13:04
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to