ah.. er not that i know of "Greg Dunn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > That's what I'm doing, but I was wondering if there was a better way. > > Greg > > > > -----Original Message----- > From: Jamesey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 10:53 AM > To: [EMAIL PROTECTED] > Subject: Re: Formatting dates in <html:text> > > > How about using SimpleDateFormat in the bean.. then you can apply your own > date format.. > > > "Greg Dunn" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I'm trying to display a date in a particular format in an <html-el:text> > > box. I'm filling my form bean from my DAO which returns a timestamp, and > > > > <html-el:text size="10" property="presReadingDate" > > value="${meterReading.dtPresReadDt}"/> > > > > displays the long date/time format 'Tue Mar 26 10:45:59 CST 2003' which is > > no good. > > > > I was looking at a discussion on this topic in the archives, but it > appears > > that it was left as "food for thought" > > > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg52386.html > > > > I use the JSTL <fmt:formatDate> tag to display a date outside a form, but > it > > can't be nested so it's no good here. > > > > This scenario seems like it would be fairly common. What does one do > here? > > Format the date in a get/set pair in their bean and display that? Use > basic > > HTML <input type="text"> tags? What's best practice? > > > > Thanks, > > > > > > Greg > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

