daterangepicker packaged for Meteor.
With Meteor 0.9.3 and above, install using:
$ meteor add antalakas:autoform-bs-daterangepicker
SearchSchema = new SimpleSchema({
searchRange: {
type: [Date],
label: "From - To",
optional: false,
autoform: {
type: "bootstrap-daterangepicker",
dateRangePickerValue: moment().add(1, 'days').format("DD/MM/YYYY") + " - " + moment().add(3, 'days').format("DD/MM/YYYY"),
dateRangePickerOptions: {
dateLimit: { days: 6 },
minDate: moment().add(-150, 'days'),
maxDate:moment().add(6, 'months'),
startDate: moment().add(1, 'days'),
endDate: moment().add(3, 'days'),
timePicker: false,
format: 'DD/MM/YYYY',
timePickerIncrement: 30,
timePicker12Hour: false,
timePickerSeconds: false
}
}
},
...
});