Thanks for pointing out joda-time Paul. It looks very promising, and is documented very well!
Regards, Joel On 9/19/05, Paul Field <[EMAIL PROTECTED]> wrote: > > > Hi Dan, > > It's worth considering creating a simple component for formatting a date > (possibly just wrapping up the Insert component with a format as mentioned > by Joel). That can ensure you're using the same format across your site and > when your sponsors ask for some interesting extension (such as a change in > format or the ability for users to choose between US-format and UK-format > dates) then you'll be much happier :-) > > While I'm at it, I'll plug one of my favourite open-source projects: > http://joda-time.sourceforge.net/ which is a fantastically good > replacement for Java's date and time classes. > > Paul > > > > > > Joel Charlesworth <[EMAIL PROTECTED]> > > 19/09/2005 15:11 To > Tapestry users <[email protected]> > cc > Please respond to > "Tapestry users" <[email protected]> Subject > Re: formatting dates in templates > > > > > > > > > > > Hi Dan, > > If you're using the Tapestry 4 Insert component, there is a 'format' > parameter you can supply. The framework documentation site has an example > of > this: > http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Insert.html > > I have read the SimpleDateFormat class isn't threadsafe, so you might want > to look at FastDateFormat which is part of the Apache Commons-lang > library. > > Have a good one! > > Joel > > On 9/19/05, Dan Adams <[EMAIL PROTECTED]> wrote: > > > > How do you guys normally format dates in templates? > > > > -- > > Dan Adams > > Software Engineer > > Interactive Factory > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > =================== > Joel Charlesworth > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > > > > -- > > This e-mail may contain confidential and/or privileged information. If you > are not the intended recipient (or have received this e-mail in error) > please notify the sender immediately and destroy this e-mail. Any > unauthorized copying, disclosure or distribution of the material in this > e-mail is strictly forbidden. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- =================== Joel Charlesworth [EMAIL PROTECTED] [EMAIL PROTECTED]
