cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Juergen Hermann">
Subject Re: How to do formatting of dates and times with SQLProcessor
Date Fri, 03 Dec 1999 12:50:19 GMT
On Fri, 3 Dec 1999 00:31:58 -0500 (EST), Donald Ball wrote:

> <date-format>yyyy-MM-dd</date-format>
> <date-format column="other_column_name">MMM d, yyyy</date-format>

<query-format id="foo">
  <currency column="price">US$ ####0.00</...

<query format="foo">

Another option would be


And, especially if you later work with XSL on the stuff:

<query-format id="foo">
  <column id="price"><currency unit="USD">{.}</currency></column>
  <column id="delivery"><date fmt="yyyy-MM-dd">{.}</date></column>

With {.} being the column value (XSLT syntax).

Ciao, Juergen

View raw message