You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Steven Caswell <st...@caswell.name> on 2003/06/01 16:39:10 UTC
RE: timestamp to date
On the other hand, I like to do a translation from the specific business
model (in this case the java.sql.Timestamp) into a more generic model (i.e.,
java.util.Date) somewhere besides the presentation layer, such as in the
model. That way I never have to worry about putting tools into the context
to do this kind of translation.
Steven Caswell
steven@caswell.name
a.k.a Mungo Knotwise of Michel Delving
"One ring to rule them all, one ring to find them..."
> -----Original Message-----
> From: Nathan Bubna [mailto:nathan@esha.com]
> Sent: Thursday, May 29, 2003 9:35 AM
> To: Velocity Users List
> Subject: Re: timestamp to date
>
>
> Tomasz said:
> > I have following question/Issue with timestamp and date in
> velocity. i
> > have an object (LogEntry) where i have timestamp attribute. i put
> > array of those objects to velocity complex, and the questio is
> how easly
> > convert timestamps to dates in velocity template.
> > I hove no idea. maybe someone done it somehow?
>
> the standard answer to such questions is Use-A-Tool (tm). :) in
> other words, you should put another object in the context
> that has a method which converts timestamps to dates.
>
> Nathan Bubna
> nathan@esha.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org