public static String removeTime(String pattern) {
        for (String timeChar : TIME_CHARS) {
            if (pattern.contains(timeChar)) {
                pattern = pattern.substring(0, pattern.indexOf(timeChar));
            }
        }
        return pattern.trim();
    }
Write the value of Calendar options

@param context
@param uicalendar component
@param optionName the name of an option
@param values the List values of an option
@param pattern the pattern for formatting
@throws IOException if writer is null
primefaces/src/main/java/org/primefaces/util/CalendarUtils.java