Hi,
In my project, there are many different date-formats, which must be supported in a model. For example, think of exotic non-standard formats like JJJJ+MM+DD or DD_MM_JJ.
The default types of A12 Modelling (Date, DateFragment) only support a few of them. I wonder, what the correct approach would be?
- “Hack” the JSON-Model and write my own custom Format:
- How does this this affect the display in the SME? The default format for Date is “yyyy-MM-dd” and does not seem to be changeable.
- Example:
"fieldType" : { "type" : "DateType", "DateType" : { "format" : "DD+MM+YYYY" } } - Always use a type-definition for every format.
- Bonus question: Can a type-definition also support a second (shortend) format, for example, if JJJJ+MM+DD also can be a JJ+MM+DD in the same field?
Many thanks,
Stefan