if (input.attr("max") != undefined) {
                        opts.dateMax = input.attr("max").split("-");
                    }