Community
Participate
Working Groups
Build Identifier: 20100218-1602 I create a report programmatically and have a date-time column. Data for this column comes in short format, like 22.06.10. 15:06:53 I have to set this column to date-time data type. I do it this way: computedColumn.setDataType(DesignChoiceConstants.COLUMN_DATA _TYPE_DATETIME); Now I get a following output: 22.06.0010 15:06:53. The year has 4 digits and first two are 00. The question is, how can I set the DateTime format. I found a constant for this, DesignChoiceConstants.DATETIEM_FORMAT_TYPE_SHORT_DATE but how to set it and to which component. Jason Weathersby wrote: We should have a StructureFactory implementation for this. Reproducible: Always
(In reply to comment #0) Hi, Reinhard Could you attach your test report?
Hey Reinhard, Can you try to use a data time value which follow ISO8601 standard? The property DesignChoiceConstants.DATETIEM_FORMAT_TYPE_SHORT_DATE is not used for parsing the Date value. It is only for formatting. Thanks. Lin