Simple: <bean:write name="myBean" property="date" format="dd-MMM-yyyy" />
Or taking the format from the application resources file: <bean:write name="myBean" property="date" formatkey="myFormat" /> > from: [EMAIL PROTECTED] > date: Thu, 02 Oct 2003 15:36:33 > to: [EMAIL PROTECTED] > subject: Re: internationalized date > > Hi all, > > I have a bean which contains a java.util.Date field which I need to print > in my JSP. > Unfortunatly when I just use: > > <bean:write name="myBean" property="date"/> > > The date get's printed in the (default) American / English format: > > Thu Oct 02 08:58:34 CEST 2003 > > I need to present a localized version of the date (Dutch standard format). > > What is a good way of achieving this? > > Many thanks, > > Harm de Laat > Informatiefabriek > The Netherlands > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21&placement=home_multi.gif&site=amazon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]