Project: Birt
Bug 202121 setDateFormat does not working
Reported: 2007-09-04 03:55:26 | Status: resolved fixed

If you want to set date format of the table column style you have to use setDateTimeFormatCategory and setDateTimeFormat instead of setDateFormatCategory and setDateFormat. If you will try to use setDateFormatCategory in the first case in xml-source you will see that your style contains dateFormat property. This property is not working at all, in the second case in xml-source you will see that your style contains dateTimeFormat property. I think it will be better if the result of setDateTimeFormatCategory and setDateFormatCategory will be the same.

Files changed in fix:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/IStyle.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/dom/AbstractStyle.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/PerfectHash.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/StyleConstants.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedContentVisitor.java