|
|
Re: Date Format [message #782996 is a reply to message #782880] |
Tue, 24 January 2012 21:59 |
|
You can do this if the report item is a text element not a data item and
you set its type to html for example:
<VALUE-OF format="MMM-dd-yy hh:mm" >new Date();</VALUE-OF>
If you want to do this in a data item use the Formatter functions. See
this blog post:
http://birtworld.blogspot.com/2011/02/birt-formatting-numbers-and-dates.html
Jason
On 1/24/2012 11:30 AM, Michael Harless wrote:
> Hello,
>
> I am new to BIRT. I have a report with a row that includes the following
> expression:
> "ADDRESS: " + dataSetRow["ADDRESS"] + "; SSN: " + dataSetRow["SSN"] + ";
> COUNTY: " + dataSetRow["COUNTY"] + "; BIRTH DATE: " +
> dataSetRow["BIRTHDDATE"] + "; BIRTH PLACE: " + dataSetRow["BIRTHPLACE"]
>
> The "BIRTHDDATE" field is formatted as yyyy-mm-dd. Can I change it to
> MM/dd/yy using <value-of format...>?
|
|
|
Re: Date Format [message #783032 is a reply to message #782969] |
Tue, 24 January 2012 23:24 |
|
Sorry I did not see that you responded.
On 1/24/2012 3:58 PM, Alessio Pollero wrote:
> Yes, you can do it in this way :
> <value-of format="MM/dd/yy">new Date()</value-of>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03781 seconds