RE: Struts Date Formatting

2007-03-07 Thread Neil Meyer
g List Subject: Re: Struts Date Formatting -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil, Neil Meyer wrote: > Code used. > > String date_ = "2007-03-07 00:00:00" > SimpleDateFormat formatter = new SimpleDateFormat("dd MMM "); > return format

Re: Struts Date Formatting

2007-03-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil, Neil Meyer wrote: > Code used. > > String date_ = "2007-03-07 00:00:00" > SimpleDateFormat formatter = new SimpleDateFormat("dd MMM "); > return formatter.format(date_); SimpleDateFormat.format() is expecting a java.util.Date argument, no

Re: Struts Date Formatting

2007-03-07 Thread Nuwan Chandrasoma
hi, you can use, with the format attribute. eg:- Regards, Nuwan - Original Message - From: "Neil Meyer" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, March 07, 2007 4:19 PM Subject: Struts Date Formatting Hallo, I would like

Struts Date Formatting

2007-03-07 Thread Neil Meyer
Hallo, I would like to find a struts tag that can do date formatting for me? I tried to do it within my objects but it keeps on giving me exceptions Code used. String date_ = "2007-03-07 00:00:00" SimpleDateFormat formatter = new SimpleDateFormat("dd MMM "); return formatter.format(date_);