16.5. Setting the Pattern Attribute

Many tags make use of the pattern attribute. For example,

    <dateField pattern="date"

To set values globally for each type and language, you can define dbforms.pattern.timestamp dbforms.pattern.date etc. For Example:


dbforms.pattern.timestamp=yyyy-MM-dd HH:mm

If you use the abbriviations SHORT, MEDIUM, FULL you can define them too:


As defaults, Dbforms is using the following if you do not specify the patterns for each field individually.

   public static final int DATE_STYLE_DEFAULT = java.text.DateFormat.MEDIUM;
   public static final int TIME_STYLE_DEFAULT = java.text.DateFormat.SHORT;