code: public static String getCalendarJavaDateFormat(String dateFormat) {
  
          dateFormat = CmsStringUtil.substitute(dateFormat, "%", ""); // remove all "%"
          dateFormat = CmsStringUtil.substitute(dateFormat, "m", "${month}");
          dateFormat = CmsStringUtil.substitute(dateFormat, "H", "${hour}");
          dateFormat = CmsStringUtil.substitute(dateFormat, "Y", "${4anno}");
          dateFormat = dateFormat.toLowerCase();
          dateFormat = CmsStringUtil.substitute(dateFormat, "${month}", "M");
          dateFormat = CmsStringUtil.substitute(dateFormat, "${hour}", "H");
          dateFormat = CmsStringUtil.substitute(dateFormat, "y", "yy");
          dateFormat = CmsStringUtil.substitute(dateFormat, "${4anno}", "yyyy");
          dateFormat = CmsStringUtil.substitute(dateFormat, "m", "mm"); // minutes with two digits
          dateFormat = dateFormat.replace('e', 'd'); // day of month
          dateFormat = dateFormat.replace('i', 'h'); // 12 hour format
          dateFormat = dateFormat.replace('p', 'a'); // pm/am String
          return dateFormat;
      }
docs: Parses the JavaScript calendar date format to the java patterns of SimpleDateFormat.<p>
  
  @param dateFormat the dateformat String of the JS calendar
  @return the parsed SimpleDateFormat pattern String