public static LocalDateTime convertDate2LocalDateTime(Date date, ZoneId zoneId) {
        if (date == null) {
            return null;
        }
        else {
            return convertDate2ZonedDateTime(date, zoneId).toLocalDateTime();
        }
    }
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