You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by "Sean W. Ferguson" <se...@comcast.net> on 2003/07/31 02:45:46 UTC
[Jelly] fmt:formatDate
Hi,
I am slightly confused. I am trying to use the formatDate of the fmt
tag library, and am not completely sure how it works. There are no unit
tests of this tag, so I don't get any working examples. Could someone
post an example of how it works?
Thanks
Re: [Jelly] fmt:formatDate
Posted by "Sean W. Ferguson" <se...@comcast.net>.
I figured it out.
Example:
<core:new var="newDate" className="java.util.Date"/>
<fmt:setLocale value="EN_US"/>
<fmt:formatDate var="myDate" dateStyle="medium" value="${newDate}"/>
Which makes myDate = Jul 31, 2003
Sean W. Ferguson wrote:
> Hi,
>
> I am slightly confused. I am trying to use the formatDate of the fmt
> tag library, and am not completely sure how it works. There are no unit
> tests of this tag, so I don't get any working examples. Could someone
> post an example of how it works?
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>