Global.String.prototype.isDateFormat ()
checks if a date format pattern is correct

  • Returns
    Boolean true if the pattern is correct
Sourcecode in /home/hannes/helma/modules/core/String.js:
130:   String.prototype.isDateFormat = function() {
131:       try {
132:           new java.text.SimpleDateFormat(this);
133:           return true;
134:       } catch (err) {
135:           return false;
136:       }
137:   }