Thanks Stephen, that's sorted out my prob!
regards, steve -----Original Message----- From: Stephen Owens [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 2:27 PM To: Struts Users Mailing List Subject: RE: Outputting dates to screen Steve, I use the <datetime> taglib and it's working well. It doesn't use a date object but rather the long value representing the number of milliseconds since (?) some date that I don't remember. So you acutally want the dateObj.getTime() function. regards, Stephen Owens Corner Software > -----Original Message----- > From: Steve Earl [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 18, 2002 4:36 AM > To: [EMAIL PROTECTED] > Subject: Outputting dates to screen > > > Hi guys, > > I know that this has been discussed over the past week or two > but I'm still > a bit unclear. Can someone help me out with the best (most > recommended) way > of displaying a java Date object on a jsp. > > At present I'm trying to use the <datetime> taglib from > Apache. The docs for > this seem to show that you can pass in a date object and the > tag will format > it according to a pattern string you supply - so you can do: > > <dt:format pattern="dd/MMM/yyyy"><dt:currentTime/></dt:format> > where dt:currentTime returns a Date object set to the current time. > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>