Take a look at the <fmt:formatDate> tag. It has lots of options for 
formatting dates and times.

In this particular case, I think you want:

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

--
Martin Cooper


At 02:29 PM 5/2/2002, Carole E. Mah wrote:

>Sorry to keep posting so many questions!
>
>Here's another:
>
>Does anyone know what the JSTL equivalent of the following DBtags
>construct might be?
>
><sql:getTimestamp colName="date" format="SHORT" />
>
>That is, <c:out> does not have a 'format' attribute, right?
>
>Because right now I just have <c:out value="${row.date}"/>
>and I just get the full date, e.g. 2002-04-30 00:00:00.0
>when I really want something like 4/30/02 12:00 AM.
>
>thank you!
>
>-carole
>
>- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>Carole E. Mah                     [EMAIL PROTECTED]
>            Senior Programmer/Analyst
>    Brown University Scholarly Technology Group
>                phn 401-863-2669
>                fax 401-863-9313
>             http://www.stg.brown.edu/
>   personal: http://www.stg.brown.edu/~carolem/
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




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

Reply via email to