class ComponentFactory {

    public static DateField newDateField() {
        MultiformatDateField field = new MultiformatDateField();
        // there is no year zero https://en.wikipedia.org/wiki/Year_zero
        field.setRangeStart(LocalDate.ofYearDay(1, 1));
        field.setRangeEnd(LocalDate.ofYearDay(9999, 365));
        return field;
    }

    private  ComponentFactory();

}