Switch the DateFormat from Date Time type #1852
-
Is there some configuration to set the output date time format I want? The reports that had date format like "dd/MM/yyyy" has become "dd 'de' MMM. 'de' yyyy, HH:mm". This happens in Data Item, when selecting DataType = Date Time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Yes, you can do it on BIRT-level with the DateTime Format of the DataItem. This option can be used on script level with the BIRT.formatter() as well. (Or you can use at worst-case scenario SQL-functions.) |
Beta Was this translation helpful? Give feedback.
-
Actually, what i want is to get the dataType property using the DesignEngine API... But it doesn't seems to be possible. I can recover the dateFormat property of an element, but not the dataType... Then, if a DateFormat is undefined, I just can't discover him and it becomes a Medium Date format. Idk if would be viable to create a configuration to change the default value in /org.eclipse.birt.core/src/org/eclipse/birt/core/format/DateFormatter.java class
If instead a DateFormat.MEDIUM it was configurable, it would resolve my issue. |
Beta Was this translation helpful? Give feedback.
This is a very good question because my reports works in every case with specified formats.
So, yes I understand the topic and it would be hard to change all values. But currently I figured out no global setting to be able for a new global default of the date format :o(