You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "CRANFORD, CHRIS" <ch...@setechusa.com> on 2004/10/01 20:49:45 UTC

Format Date Question

I am using the fmt:formateDate taglib with a pattern in order to present
dates in a specified format.  Ideally we'd like to output our dates as such
02-APR-2004 instead of 02-Apr-2004.  Is there any pattern or way I could
force format date to output the date in uppercase?

_______________________________________________________
Chris Cranford
Programmer/Developer
SETECH Inc. & Companies
6302 Fairview Rd, Suite 201
Charlotte, NC  28210
Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 
Email: chris.cranford@setechusa.com


RE: Format Date Question

Posted by Robert Taylor <rt...@mulework.com>.
In JSP2.0 you could use JSTL fn:toUpperCase() after you format the date.

<c:set var="upperDate" value="${fn:toUpperCase(formattedDate}"/>

robert

> -----Original Message-----
> From: CRANFORD, CHRIS [mailto:chris.cranford@setechusa.com]
> Sent: Friday, October 01, 2004 2:50 PM
> To: 'user@struts.apache.org'
> Subject: Format Date Question
> 
> 
> I am using the fmt:formateDate taglib with a pattern in order to present
> dates in a specified format.  Ideally we'd like to output our dates as such
> 02-APR-2004 instead of 02-Apr-2004.  Is there any pattern or way I could
> force format date to output the date in uppercase?
> 
> _______________________________________________________
> Chris Cranford
> Programmer/Developer
> SETECH Inc. & Companies
> 6302 Fairview Rd, Suite 201
> Charlotte, NC  28210
> Phone: (704) 362-9423, Fax: (704) 362-9409, Mobile: (704) 650-1042 
> Email: chris.cranford@setechusa.com
> 
> 

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