You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Cohan, Sean" <SC...@goSPS.com> on 2003/01/21 20:48:49 UTC

OT RE: DateTime

Sorry, this ended up in the wrong mailing list.

-----Original Message-----
From: Cohan, Sean [mailto:SCohan@goSPS.com]
Sent: Tuesday, January 21, 2003 1:57 PM
To: 'axis-user@xml.apache.org'
Subject: DateTime


I'm trying to pass a java.util.date.getTime() to the DateTime format tag
using a Struts bean tag, but keep getting an 'Invalid Date' message
displayed on my page.  I know the data is a valid date.  Not sure if I'm
doing something wrong with the tag though.  Any ideas?  Here's how I'm using
it.


<dt:format pattern="E, MMMM dd, yyyy">
   <bean:write name="deltaItem" property="newValueTs.time" />
</dt:format>


This will call the getTime() method on the java.util.date returned by the
getNewValueTs() method of the deltaItem bean.

I also get an 'Invalid Date' message if I change getNewValueTs() to return
the value of getTime() for the deltaItem object.