If you are using Struts 1.1 then you can use the formatKey attribute of the
tag

formatKey="format.date.long"

with a key in you properties file as such: format.date.long=EEEE MMMM d, yyyy
** I think this only works if you are putting Date or Timestamp to the page.


If not 1.1 then I guess you could a helper method is the form bean that formats the 
date called
String getDateFormatted() ..





Cathy Osekizoglu <[EMAIL PROTECTED]> on 09/23/2002 03:17:42 PM

Please respond to "Struts Users Mailing List"
       <[EMAIL PROTECTED]>

To:    [EMAIL PROTECTED]
cc:

Subject:    bean:write and Date format



Using <bean:write name="aPayment" property="date"/>, I got the date as:"
Fri Aug 24   23:42:00   EDT   2002."

How can I change it to " Fri Aug 24 02  23:42 " using struts tag?

Thank you for your help.

Cathy



---------------------------------
Post your free ad now! Yahoo! Canada Personals








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

Reply via email to