Re: Velocity EOGenerator Date In Templates

From: Mike Schrag (mschra..dimension.com)
Date: Fri Mar 07 2008 - 19:01:00 EST

  • Next message: Michael Hast: "Re: Velocity EOGenerator Date In Templates"

    I have committed a new "date" (new Date()) and
    "calendar" (Calendar.getInstance()) binding into the eogen template
    context. Not sure how to format that in velocity, though.

    ms

    On Mar 6, 2008, at 9:55 PM, Michael Hast wrote:

    > Hi:
    >
    > The old EOGenerator templates had the ability of displaying date
    > information in different formats, e.g. "<$date %a %b %d %Y$>" or "<
    > $date %Y$>" just for the year. How would I do that in the new
    > Velocity templates? It seems that the context needs to have a date
    > variable passed in. Is that something that can be done?
    >
    > Michael.
    > --
    > Tel: (520) 572-9410
    > Desert Sky Software: www.desertsky.com
    > Specializing in the Development and Hosting of
    > e-Business Applications.



    This archive was generated by hypermail 2.0.0 : Fri Mar 07 2008 - 19:02:11 EST